mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +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
|
@ -458,6 +458,7 @@ class TestUUID(unittest.TestCase):
|
|||
|
||||
else:
|
||||
os.close(fds[1])
|
||||
self.addCleanup(os.close, fds[0])
|
||||
parent_value = uuid.uuid4().hex
|
||||
os.waitpid(pid, 0)
|
||||
child_value = os.read(fds[0], 100).decode('latin-1')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue