summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-09-15 08:24:27 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-09-15 08:24:27 (GMT)
commit024364a89aee39e4d4f47b08ad93f262f5f97dc6 (patch)
tree6cd1cef11985af674801dc0384263b79a336e8a0 /Lib/test/test_os.py
parent13e457c80819f118a5c531ecb94304d26c803e8e (diff)
parentd3ffd32767e1b05cc54e38e2d518b9b528ff8826 (diff)
downloadcpython-024364a89aee39e4d4f47b08ad93f262f5f97dc6.zip
cpython-024364a89aee39e4d4f47b08ad93f262f5f97dc6.tar.gz
cpython-024364a89aee39e4d4f47b08ad93f262f5f97dc6.tar.bz2
Merge 3.5 (os.waitpid)
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 70e9a31..b73b64b 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -2077,6 +2077,12 @@ class PidTests(unittest.TestCase):
# We are the parent of our subprocess
self.assertEqual(int(stdout), os.getpid())
+ def test_waitpid(self):
+ args = [sys.executable, '-c', 'pass']
+ pid = os.spawnv(os.P_NOWAIT, args[0], args)
+ status = os.waitpid(pid, 0)
+ self.assertEqual(status, (pid, 0))
+
# The introduction of this TestCase caused at least two different errors on
# *nix buildbots. Temporarily skip this to let the buildbots move along.