mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Use assertEqual to fix DeprecationWarning. (GH-10794)
This commit is contained in:
parent
82daa60def
commit
b2774c8e91
1 changed files with 1 additions and 1 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue