From: Victor Stinner Date: Fri, 10 Jun 2011 11:53:32 +0000 (+0200) Subject: Issue #8407: write error message on sigwait test failure X-Git-Tag: v3.3.0a1~2140 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=46591664fa6fc75739fad055ca5bd306845c7017;p=thirdparty%2FPython%2Fcpython.git Issue #8407: write error message on sigwait test failure --- diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index ea4062732d75..7a170432f28e 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