[Python-checkins] cpython (3.4): Explicitly wait for the child instead of letting a destructor do it.
gregory.p.smith
python-checkins at python.org
Sun Jun 1 22:47:44 CEST 2014
http://hg.python.org/cpython/rev/784bd2c37d52
changeset: 90950:784bd2c37d52
branch: 3.4
user: Gregory P. Smith <greg at krypto.org>
date: Sun Jun 01 13:46:54 2014 -0700
summary:
Explicitly wait for the child instead of letting a destructor do it.
files:
Lib/test/test_subprocess.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -1966,7 +1966,7 @@
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:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list