From: Gregory P. Smith Date: Sun, 1 Jun 2014 20:46:54 +0000 (-0700) Subject: Explicitly wait for the child instead of letting a destructor do it. X-Git-Tag: v3.4.2rc1~468 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ffd529cde138cb6ee211490dff13c6f6ee91e177;p=thirdparty%2FPython%2Fcpython.git Explicitly wait for the child instead of letting a destructor do it. --- diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index b1588e03bd5b..8aa436e8f218 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: