mirror of
https://github.com/python/cpython.git
synced 2025-09-19 15:10:58 +00:00
Explicitly wait for the child instead of letting a destructor do it.
This commit is contained in:
parent
a26987a0a5
commit
ffd529cde1
1 changed files with 1 additions and 1 deletions
|
@ -1966,7 +1966,7 @@ class POSIXProcessTestCase(BaseTestCase):
|
||||||
import subprocess, sys
|
import subprocess, sys
|
||||||
subprocess.Popen([sys.executable, {fd_status!r}] +
|
subprocess.Popen([sys.executable, {fd_status!r}] +
|
||||||
[str(x) for x in range({max_fd})],
|
[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))],
|
""".format(fd_status=fd_status, max_fd=max_fd_open+1))],
|
||||||
stdout=subprocess.PIPE, close_fds=False)
|
stdout=subprocess.PIPE, close_fds=False)
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue