Commit 46591664 authored by Victor Stinner's avatar Victor Stinner

Issue #8407: write error message on sigwait test failure

parent af494602
...@@ -619,10 +619,11 @@ class PendingSignalsTests(unittest.TestCase): ...@@ -619,10 +619,11 @@ class PendingSignalsTests(unittest.TestCase):
print("the signal handler has been called", print("the signal handler has been called",
file=sys.stderr) file=sys.stderr)
os._exit(1) os._exit(1)
except BaseException as err:
os._exit(0) print("error: {}".format(err), file=sys.stderr)
finally:
os._exit(1) os._exit(1)
else:
os._exit(0)
else: else:
# parent: let the child some time to wait, send him the signal, and # parent: let the child some time to wait, send him the signal, and
# check it correcty received it # check it correcty received it
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment