Skip to content

Commit f7517b0

Browse files
[3.15] gh-133651: Increase multiprocessing test_interrupt() timeout (GH-160281) (#160319)
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 230cc89 commit f7517b0

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
@@ -624,10 +624,10 @@ def _kill_process(self, meth, target=None):
624624
# On the Gentoo buildbot waitpid() often seems to block forever.
625625
# We use alarm() to interrupt it if it blocks for too long.
626626
def handler(*args):
627-
raise RuntimeError('join took too long: %s' % p)
627+
raise RuntimeError(f'join took longer than {timeout} seconds: {p}')
628628
old_handler = signal.signal(signal.SIGALRM, handler)
629629
try:
630-
signal.alarm(10)
630+
signal.alarm(int(timeout))
631631
self.assertEqual(join(), None)
632632
finally:
633633
signal.alarm(0)

0 commit comments

Comments
 (0)