mirror of
https://github.com/python/cpython.git
synced 2024-11-25 02:44:06 +08:00
Issue #8407: write error message on sigwait test failure
This commit is contained in:
parent
af4946020e
commit
46591664fa
@ -619,10 +619,11 @@ class PendingSignalsTests(unittest.TestCase):
|
||||
print("the signal handler has been called",
|
||||
file=sys.stderr)
|
||||
os._exit(1)
|
||||
|
||||
os._exit(0)
|
||||
finally:
|
||||
except BaseException as err:
|
||||
print("error: {}".format(err), file=sys.stderr)
|
||||
os._exit(1)
|
||||
else:
|
||||
os._exit(0)
|
||||
else:
|
||||
# parent: let the child some time to wait, send him the signal, and
|
||||
# check it correcty received it
|
||||
|
Loading…
Reference in New Issue
Block a user