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
1 changed files with 1 additions and 1 deletions

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