From d2ddfccfb40e22bbdd75b28b444fd7b33dfe38db Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Mon, 6 Nov 2023 22:05:56 -0800 Subject: [PATCH] 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. --- Lib/test/test_kqueue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_kqueue.py b/Lib/test/test_kqueue.py index 28e882b1051..e94edcbc107 100644 --- a/Lib/test/test_kqueue.py +++ b/Lib/test/test_kqueue.py @@ -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__":