cpython: 37a87b709403 (original) (raw)
Mercurial > cpython
changeset 70754:37a87b709403
Issue #8407: write error message on sigwait test failure [#8407]
Victor Stinner victor.stinner@haypocalc.com | |
---|---|
date | Fri, 10 Jun 2011 13:53:32 +0200 |
parents | a17710e27ea2 |
children | 5a745404facf |
files | Lib/test/test_signal.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-)[+] [-] Lib/test/test_signal.py 7 |
line wrap: on
line diff
--- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -619,10 +619,11 @@ class PendingSignalsTests(unittest.TestC print("the signal handler has been called", file=sys.stderr) os._exit(1) -
except BaseException as err:[](#l1.8)
print("error: {}".format(err), file=sys.stderr)[](#l1.9)
os._exit(1)[](#l1.10)
else:[](#l1.11) os._exit(0)[](#l1.12)
finally:[](#l1.13)
os._exit(1)[](#l1.14) else:[](#l1.15) # parent: let the child some time to wait, send him the signal, and[](#l1.16) # check it correcty received it[](#l1.17)