Skip to content

Commit 6ecebd7

Browse files
gpsheadaisk
authored andcommitted
pythongh-110395: test: assert after the child dies. (python#111816)
based on review from Victor Stinner. I already made this edit in the 3.12 backport PR.
1 parent e265e05 commit 6ecebd7

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)