0
0
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:
Gregory P. Smith 2023-11-06 22:05:56 -08:00 committed by GitHub
parent c3e19c3a62
commit d2ddfccfb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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__":