mirror of
https://github.com/python/cpython.git
synced 2024-11-21 12:59:38 +01:00
gh-110395: test: assert after the child dies. (#111816)
based on review from Victor Stinner. I already made this edit in the 3.12 backport PR.
This commit is contained in:
parent
c3e19c3a62
commit
d2ddfccfb4
@ -271,8 +271,8 @@ class TestKQueue(unittest.TestCase):
|
||||
finally:
|
||||
os._exit(0)
|
||||
else:
|
||||
self.assertFalse(kqueue.closed)
|
||||
support.wait_process(pid, exitcode=0)
|
||||
self.assertFalse(kqueue.closed) # child done, we're still open.
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user