diff options
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 |