Skip to content

Commit ad90244

Browse files
committed
gh-133651: Increase multiprocessing test_interrupt() timeout
Increase timeout from 10 to at least 30 seconds (SHORT_TIMEOUT).
1 parent 1512f78 commit ad90244

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

0 commit comments

Comments
 (0)