]> granicus.if.org Git - python/commitdiff
Explicitly wait for the child instead of letting a destructor do it.
authorGregory P. Smith <greg@krypto.org>
Sun, 1 Jun 2014 20:46:54 +0000 (13:46 -0700)
committerGregory P. Smith <greg@krypto.org>
Sun, 1 Jun 2014 20:46:54 +0000 (13:46 -0700)
Lib/test/test_subprocess.py

index b1588e03bd5b24d4b2abe7d77e84c1e6a3c0375f..8aa436e8f218069aea73fef74439d9088dd799e4 100644 (file)
@@ -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: