mirror of
https://github.com/python/cpython.git
synced 2025-09-14 20:56:06 +00:00
Let us know when there was a problem and the child had to kill the parent
This commit is contained in:
parent
c0328d17a5
commit
3ee5941f68
1 changed files with 1 additions and 0 deletions
|
@ -87,6 +87,7 @@ def force_test_exit():
|
||||||
# time for the normal sequence of events to occur. This is
|
# time for the normal sequence of events to occur. This is
|
||||||
# just a stop-gap to prevent the test from hanging.
|
# just a stop-gap to prevent the test from hanging.
|
||||||
time.sleep(MAX_DURATION + 5)
|
time.sleep(MAX_DURATION + 5)
|
||||||
|
print >> sys.__stdout__, ' child should not have to kill parent'
|
||||||
for i in range(3):
|
for i in range(3):
|
||||||
os.kill(pid, signal.SIGALARM)
|
os.kill(pid, signal.SIGALARM)
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue