mirror of https://github.com/python/cpython
#17510: avoid using deprecated assertEquals method in test_program. Patch by Daniel Black.
This commit is contained in:
parent
e94cbd188b
commit
cf936c7287
|
@ -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…
Reference in New Issue