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):
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
......
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