diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-06-10 11:53:32 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-06-10 11:53:32 (GMT) |
commit | 46591664fa6fc75739fad055ca5bd306845c7017 (patch) | |
tree | 43690371519389e58c509587318be61aed659f18 /Lib/test/test_signal.py | |
parent | af4946020e92556052782fcc95075dd8d694dbb5 (diff) | |
download | cpython-46591664fa6fc75739fad055ca5bd306845c7017.zip cpython-46591664fa6fc75739fad055ca5bd306845c7017.tar.gz cpython-46591664fa6fc75739fad055ca5bd306845c7017.tar.bz2 |
Issue #8407: write error message on sigwait test failure
Diffstat (limited to 'Lib/test/test_signal.py')
-rw-r--r-- | Lib/test/test_signal.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index ea40627..7a17043 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -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 |