Use assertEqual to fix DeprecationWarning. (GH-10794)

This commit is contained in:
Xtreak 2018-11-29 18:37:00 +05:30 committed by Serhiy Storchaka
parent 82daa60def
commit b2774c8e91
1 changed files with 1 additions and 1 deletions

View 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 = []