mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Print process instead of pid.
This commit is contained in:
parent
c3a9b35588
commit
b46fe79735
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ class _TestProcess(BaseTestCase):
|
|||
|
||||
if hasattr(signal, 'alarm'):
|
||||
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)
|
||||
try:
|
||||
signal.alarm(10)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue