mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
#17510: avoid using deprecated assertEquals method in test_program. Patch by Daniel Black.
This commit is contained in:
parent
e94cbd188b
commit
cf936c7287
1 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ class Test_TestProgram(unittest.TestCase):
|
|||
defaultTest='unittest.test',
|
||||
testLoader=self.FooBarLoader())
|
||||
sys.argv = old_argv
|
||||
self.assertEquals(('unittest.test',), program.testNames)
|
||||
self.assertEqual(('unittest.test',), program.testNames)
|
||||
|
||||
def test_defaultTest_with_iterable(self):
|
||||
class FakeRunner(object):
|
||||
|
@ -97,7 +97,7 @@ class Test_TestProgram(unittest.TestCase):
|
|||
defaultTest=['unittest.test', 'unittest.test2'],
|
||||
testLoader=self.FooBarLoader())
|
||||
sys.argv = old_argv
|
||||
self.assertEquals(['unittest.test', 'unittest.test2'],
|
||||
self.assertEqual(['unittest.test', 'unittest.test2'],
|
||||
program.testNames)
|
||||
|
||||
def test_NonExit(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue