mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Merge
This commit is contained in:
commit
bc2bfa6b68
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ class _TestProcess(BaseTestCase):
|
||||||
|
|
||||||
if hasattr(signal, 'alarm'):
|
if hasattr(signal, 'alarm'):
|
||||||
def handler(*args):
|
def handler(*args):
|
||||||
raise RuntimeError('join took too long: pid=%s' % p.pid)
|
raise RuntimeError('join took too long: %s' % p)
|
||||||
old_handler = signal.signal(signal.SIGALRM, handler)
|
old_handler = signal.signal(signal.SIGALRM, handler)
|
||||||
try:
|
try:
|
||||||
signal.alarm(10)
|
signal.alarm(10)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue