https://github.com/python/cpython/commit/7ee9ddda05fcfe558f9df83066d9fc3c377f33c5
commit: 7ee9ddda05fcfe558f9df83066d9fc3c377f33c5
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2026-10-22T19:04:14Z
summary:
gh-133651: Increase multiprocessing test_interrupt() timeout (#160281)
Increase timeout from 10 to at least 30 seconds (SHORT_TIMEOUT).
files:
M Lib/test/_test_multiprocessing.py
diff --git a/Lib/test/_test_multiprocessing.py
b/Lib/test/_test_multiprocessing.py
index 40abeda816963b..00de9d0ac921d2 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -625,10 +625,10 @@ def _kill_process(self, meth, target=None):
# On the Gentoo buildbot waitpid() often seems to block forever.
# We use alarm() to interrupt it if it blocks for too long.
def handler(*args):
- raise RuntimeError('join took too long: %s' % p)
+ raise RuntimeError(f'join took longer than {timeout} seconds:
{p}')
old_handler = signal.signal(signal.SIGALRM, handler)
try:
- signal.alarm(10)
+ signal.alarm(int(timeout))
self.assertEqual(join(), None)
finally:
signal.alarm(0)
_______________________________________________
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]