diff options
author | Gregory P. Smith <greg@krypto.org> | 2014-06-01 20:46:54 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2014-06-01 20:46:54 (GMT) |
commit | ffd529cde138cb6ee211490dff13c6f6ee91e177 (patch) | |
tree | f98b6130111497b2aa059629b0d8199dbfedcf72 | |
parent | a26987a0a56d0eab5bab0e5d805d85aa7901a92c (diff) | |
download | cpython-ffd529cde138cb6ee211490dff13c6f6ee91e177.zip cpython-ffd529cde138cb6ee211490dff13c6f6ee91e177.tar.gz cpython-ffd529cde138cb6ee211490dff13c6f6ee91e177.tar.bz2 |
Explicitly wait for the child instead of letting a destructor do it.
-rw-r--r-- | 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 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: |