summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-03-23 14:46:23 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-03-23 14:46:23 (GMT)
commitcf936c7287b7a7cbb308895a4bf1222b5ba9392c (patch)
tree31f1e6fcb170ce3613916ff86471f81347c9ca67 /Lib/unittest
parente94cbd188b8e59fab69e5b6149563d131b50d0c1 (diff)
downloadcpython-cf936c7287b7a7cbb308895a4bf1222b5ba9392c.zip
cpython-cf936c7287b7a7cbb308895a4bf1222b5ba9392c.tar.gz
cpython-cf936c7287b7a7cbb308895a4bf1222b5ba9392c.tar.bz2
#17510: avoid using deprecated assertEquals method in test_program. Patch by Daniel Black.
Diffstat (limited to 'Lib/unittest')
-rw-r--r--Lib/unittest/test/test_program.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/unittest/test/test_program.py b/Lib/unittest/test/test_program.py
index 8e02f3c..97d7a24 100644
--- a/Lib/unittest/test/test_program.py
+++ b/Lib/unittest/test/test_program.py
@@ -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):