#17510: avoid using deprecated assertEquals method in test_program. Patch by Daniel Black.

This commit is contained in:
Ezio Melotti 2013-03-23 16:46:23 +02:00
parent e94cbd188b
commit cf936c7287
1 changed files with 2 additions and 2 deletions

View File

@ -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):