Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2337)

Unified Diff: Lib/test/fork_wait.py

Issue 3232042: #9424: convert deprecated assert methods in the Python test suite Base URL: http://svn.python.org/projects/python/branches/py3k/
Patch Set: Minor cleanups Created 13 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/buffer_tests.py ('k') | Lib/test/list_tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Lib/test/fork_wait.py
===================================================================
--- Lib/test/fork_wait.py (revision 86567)
+++ Lib/test/fork_wait.py (working copy)
@@ -40,8 +40,8 @@
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 @@
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()
« no previous file with comments | « Lib/test/buffer_tests.py ('k') | Lib/test/list_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b