[Python-checkins] cpython: Issue #8407: write error message on sigwait test failure
victor.stinner
python-checkins at python.org
Fri Jun 10 13:53:45 CEST 2011
http://hg.python.org/cpython/rev/37a87b709403
changeset: 70754:37a87b709403
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Fri Jun 10 13:53:32 2011 +0200
summary:
Issue #8407: write error message on sigwait test failure
files:
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
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -619,10 +619,11 @@
print("the signal handler has been called",
file=sys.stderr)
os._exit(1)
-
+ except BaseException as err:
+ print("error: {}".format(err), file=sys.stderr)
+ os._exit(1)
+ else:
os._exit(0)
- finally:
- os._exit(1)
else:
# parent: let the child some time to wait, send him the signal, and
# check it correcty received it
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list