Skip to content

Commit d2ddfcc

Browse files
authored
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.
1 parent c3e19c3 commit d2ddfcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_kqueue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ def test_fork(self):
271271
finally:
272272
os._exit(0)
273273
else:
274-
self.assertFalse(kqueue.closed)
275274
support.wait_process(pid, exitcode=0)
275+
self.assertFalse(kqueue.closed) # child done, we're still open.
276276

277277

278278
if __name__ == "__main__":

0 commit comments

Comments
 (0)