]> granicus.if.org Git - python/commitdiff
Use assertEqual to fix DeprecationWarning. (GH-10794)
authorXtreak <tirkarthi@users.noreply.github.com>
Thu, 29 Nov 2018 13:07:00 +0000 (18:37 +0530)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 29 Nov 2018 13:07:00 +0000 (15:07 +0200)
Lib/unittest/test/test_runner.py

index 6f89f77ff778247b41de7c7be3e0889e56697d67..2b475c2d8566fdf826aa631e1a2736f595aae1f4 100644 (file)
@@ -256,7 +256,7 @@ class TestClassCleanup(unittest.TestCase):
         TestableTest.addClassCleanup(cleanup2)
         with self.assertRaises(Exception) as e:
             TestableTest.doClassCleanups()
-            self.assertEquals(e, 'cleanup1')
+            self.assertEqual(e, 'cleanup1')
 
     def test_with_errors_addCleanUp(self):
         ordering = []