diff options
author | Xtreak <tirkarthi@users.noreply.github.com> | 2018-11-29 13:07:00 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-11-29 13:07:00 (GMT) |
commit | b2774c8e91d2f55304ead0b26e9476571ec1e95b (patch) | |
tree | 216756ae8a24cd1e84a23e05e9d040b97205d014 | |
parent | 82daa60defbd6497efdaa6c1132ecc8563122ed5 (diff) | |
download | cpython-b2774c8e91d2f55304ead0b26e9476571ec1e95b.zip cpython-b2774c8e91d2f55304ead0b26e9476571ec1e95b.tar.gz cpython-b2774c8e91d2f55304ead0b26e9476571ec1e95b.tar.bz2 |
Use assertEqual to fix DeprecationWarning. (GH-10794)
-rw-r--r-- | Lib/unittest/test/test_runner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/test/test_runner.py b/Lib/unittest/test/test_runner.py index 6f89f77..2b475c2 100644 --- a/Lib/unittest/test/test_runner.py +++ b/Lib/unittest/test/test_runner.py @@ -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 = [] |