]> granicus.if.org Git - python/commitdiff
Issue #11615: Fix sporadic buildbot failures related to #10812.
authorRoss Lagerwall <rosslagerwall@gmail.com>
Sun, 20 Mar 2011 16:27:05 +0000 (18:27 +0200)
committerRoss Lagerwall <rosslagerwall@gmail.com>
Sun, 20 Mar 2011 16:27:05 +0000 (18:27 +0200)
Lib/test/test_posix.py

index 72bc1de1c4c7a8273b2e601262771dde35ccdabe..5373292f0a81b45afcca85441d24833bc5cb8b61 100644 (file)
@@ -141,7 +141,7 @@ class PosixTester(unittest.TestCase):
 
     @unittest.skipUnless(hasattr(posix, 'fexecve'), "test needs posix.fexecve()")
     @unittest.skipUnless(hasattr(os, 'fork'), "test needs os.fork()")
-    @unittest.skipUnless(hasattr(os, 'wait'), "test needs os.wait()")
+    @unittest.skipUnless(hasattr(os, 'waitpid'), "test needs os.waitpid()")
     def test_fexecve(self):
         fp = os.open(sys.executable, os.O_RDONLY)
         try:
@@ -150,7 +150,7 @@ class PosixTester(unittest.TestCase):
                 os.chdir(os.path.split(sys.executable)[0])
                 posix.fexecve(fp, [sys.executable, '-c', 'pass'], os.environ)
             else:
-                self.assertEqual(os.wait(), (pid, 0))
+                self.assertEqual(os.waitpid(pid, 0), (pid, 0))
         finally:
             os.close(fp)