summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_posix.py
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2011-03-20 16:27:05 (GMT)
committerRoss Lagerwall <rosslagerwall@gmail.com>2011-03-20 16:27:05 (GMT)
commitdedf6cf387eecf81d90bfe942cfb3b0834963bbd (patch)
tree286feac791813bdced4156931ec458f92124a24d /Lib/test/test_posix.py
parent3c8d0cc5e5c79bb9420a6c46a1ee7a52c089a253 (diff)
downloadcpython-dedf6cf387eecf81d90bfe942cfb3b0834963bbd.zip
cpython-dedf6cf387eecf81d90bfe942cfb3b0834963bbd.tar.gz
cpython-dedf6cf387eecf81d90bfe942cfb3b0834963bbd.tar.bz2
Issue #11615: Fix sporadic buildbot failures related to #10812.
Diffstat (limited to 'Lib/test/test_posix.py')
-rw-r--r--Lib/test/test_posix.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index 72bc1de..5373292 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -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)