summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2014-06-01 20:47:34 (GMT)
committerGregory P. Smith <greg@krypto.org>2014-06-01 20:47:34 (GMT)
commit45f31d14920dd86183f2358389640559b1f79263 (patch)
tree95a76823394b2fb83b9493bedfe75d8a0d8cea9b /Lib/test/test_subprocess.py
parent3fe9e8d5a5ff730b3497fc4e5361bf15ccac14bb (diff)
parentffd529cde138cb6ee211490dff13c6f6ee91e177 (diff)
downloadcpython-45f31d14920dd86183f2358389640559b1f79263.zip
cpython-45f31d14920dd86183f2358389640559b1f79263.tar.gz
cpython-45f31d14920dd86183f2358389640559b1f79263.tar.bz2
merge the end_fd comment fix and explicit wait() for the child.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r--Lib/test/test_subprocess.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index b1588e0..8aa436e 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -1966,7 +1966,7 @@ class POSIXProcessTestCase(BaseTestCase):
import subprocess, sys
subprocess.Popen([sys.executable, {fd_status!r}] +
[str(x) for x in range({max_fd})],
- close_fds=True)
+ close_fds=True).wait()
""".format(fd_status=fd_status, max_fd=max_fd_open+1))],
stdout=subprocess.PIPE, close_fds=False)
finally: