Skip to content

Commit 97a8ae1

Browse files
gpsheadGlyphack
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 353eee6 commit 97a8ae1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_kqueue.py

+1-1
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)