Skip to content

Commit 3357cb5

Browse files
[3.14] gh-133651: Increase multiprocessing test_interrupt() timeout (GH-160281) (#160320)
gh-133651: Increase multiprocessing test_interrupt() timeout (GH-160281) Increase timeout from 10 to at least 30 seconds (SHORT_TIMEOUT). (cherry picked from commit 7ee9ddd) Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 4ba8b7b commit 3357cb5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Lib/test/_test_multiprocessing.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,10 +616,10 @@ def _kill_process(self, meth, target=None):
616616
# On the Gentoo buildbot waitpid() often seems to block forever.
617617
# We use alarm() to interrupt it if it blocks for too long.
618618
def handler(*args):
619-
raise RuntimeError('join took too long: %s' % p)
619+
raise RuntimeError(f'join took longer than {timeout} seconds: {p}')
620620
old_handler = signal.signal(signal.SIGALRM, handler)
621621
try:
622-
signal.alarm(10)
622+
signal.alarm(int(timeout))
623623
self.assertEqual(join(), None)
624624
finally:
625625
signal.alarm(0)

0 commit comments

Comments
 (0)