From: Gregory P. Smith Date: Tue, 7 Nov 2023 06:05:56 +0000 (-0800) Subject: gh-110395: test: assert after the child dies. (#111816) X-Git-Tag: v3.13.0a2~173 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d2ddfccfb40e22bbdd75b28b444fd7b33dfe38db;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/test/test_kqueue.py b/Lib/test/test_kqueue.py index 28e882b1051e..e94edcbc107b 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__":