mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #18174: Fix fd leaks in tests.
This commit is contained in:
parent
409f90237c
commit
0e547b66dc
3 changed files with 5 additions and 1 deletions
|
@ -1263,7 +1263,8 @@ class POSIXProcessTestCase(BaseTestCase):
|
|||
self.stderr.fileno()),
|
||||
msg="At least one fd was closed early.")
|
||||
finally:
|
||||
map(os.close, devzero_fds)
|
||||
for fd in devzero_fds:
|
||||
os.close(fd)
|
||||
|
||||
@unittest.skipIf(not os.path.exists("/dev/zero"), "/dev/zero required.")
|
||||
def test_preexec_errpipe_does_not_double_close_pipes(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue