diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-11-20 19:04:17 +0000 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-11-20 19:04:17 +0000 |
commit | 19449cb010e5ef7c775b582a56f477ef67c57f8c (patch) | |
tree | 2b8b721dc50b35778db823b629b4e1ffa4c3566a /Lib/test/fork_wait.py | |
parent | ddc3434e315497707d753cfcd4a7c19efbec643a (diff) | |
download | cpython-19449cb010e5ef7c775b582a56f477ef67c57f8c.tar.gz |
#9424: Replace deprecated assert* methods in the Python test suite.
Diffstat (limited to 'Lib/test/fork_wait.py')
-rw-r--r-- | Lib/test/fork_wait.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/fork_wait.py b/Lib/test/fork_wait.py index 533c0c2672..1caab1c491 100644 --- a/Lib/test/fork_wait.py +++ b/Lib/test/fork_wait.py @@ -40,8 +40,8 @@ class ForkWait(unittest.TestCase): break time.sleep(2 * SHORTSLEEP) - self.assertEquals(spid, cpid) - self.assertEquals(status, 0, "cause = %d, exit = %d" % (status&0xff, status>>8)) + self.assertEqual(spid, cpid) + self.assertEqual(status, 0, "cause = %d, exit = %d" % (status&0xff, status>>8)) def test_wait(self): for i in range(NUM_THREADS): @@ -50,7 +50,7 @@ class ForkWait(unittest.TestCase): time.sleep(LONGSLEEP) a = sorted(self.alive.keys()) - self.assertEquals(a, list(range(NUM_THREADS))) + self.assertEqual(a, list(range(NUM_THREADS))) prefork_lives = self.alive.copy() |