https://github.com/python/cpython/commit/3bb7cbf342f49a0a07615d55b96c0258b232f04d commit: 3bb7cbf342f49a0a07615d55b96c0258b232f04d branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: hugovk <[email protected]> date: 2026-10-25T16:11:25+02:00 summary:
[3.14] gh-160295: Fix race in test_forkserver_sigkill (GH-160296) (#160509) Co-authored-by: Davi de Jesus <[email protected]> files: M Lib/test/_test_multiprocessing.py diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index ba0659a349808e..827f1b6603050a 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -972,7 +972,9 @@ def check_forkserver_death(self, signum): self.assertEqual(proc2.exitcode, 0) proc.join() - self.assertTrue(evt.is_set()) + # After SIGKILL, join() can return (exitcode 255) as soon as the + # status pipe is closed, before the orphaned child has run. + self.assertTrue(evt.wait(support.SHORT_TIMEOUT)) self.assertIn(proc.exitcode, (0, 255)) def test_forkserver_sigint(self): _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
