[Python-checkins] Use assertEqual to fix DeprecationWarning. (GH-10794)
Serhiy Storchaka
webhook-mailer at python.org
Thu Nov 29 08:07:10 EST 2018
https://github.com/python/cpython/commit/b2774c8e91d2f55304ead0b26e9476571ec1e95b
commit: b2774c8e91d2f55304ead0b26e9476571ec1e95b
branch: master
author: Xtreak <tirkarthi at users.noreply.github.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2018-11-29T15:07:00+02:00
summary:
Use assertEqual to fix DeprecationWarning. (GH-10794)
files:
M Lib/unittest/test/test_runner.py
diff --git a/Lib/unittest/test/test_runner.py b/Lib/unittest/test/test_runner.py
index 6f89f77ff778..2b475c2d8566 100644
--- a/Lib/unittest/test/test_runner.py
+++ b/Lib/unittest/test/test_runner.py
@@ -256,7 +256,7 @@ def cleanup2():
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 = []
More information about the Python-checkins
mailing list