diff options
author | Fred Drake <fdrake@acm.org> | 2000-08-18 16:04:05 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-08-18 16:04:05 (GMT) |
commit | fe5c22a85e6740012143cdbdc384bd2ebc788c27 (patch) | |
tree | 91dab73f9fd828dc10dc5d007ce606dc67686e73 | |
parent | 7b4fc17c6d6f6ee802ca909ee646eaedeee8e2ac (diff) | |
download | cpython-fe5c22a85e6740012143cdbdc384bd2ebc788c27.zip cpython-fe5c22a85e6740012143cdbdc384bd2ebc788c27.tar.gz cpython-fe5c22a85e6740012143cdbdc384bd2ebc788c27.tar.bz2 |
When a KeyboardInterrupt is caught, just use the "raise" syntax to
re-raise it instead of re-raising it "manually" the ugly way.
-rwxr-xr-x | Lib/test/regrtest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 3bebca4..f925645 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -234,8 +234,8 @@ def runtest(test, generate, verbose, quiet, testdir = None): print "test", test, print "skipped -- ", msg return -1 - except KeyboardInterrupt, v: - raise KeyboardInterrupt, v, sys.exc_info()[2] + except KeyboardInterrupt: + raise except test_support.TestFailed, msg: print "test", test, "failed --", msg return 0 |