summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-08-18 16:04:05 (GMT)
committerFred Drake <fdrake@acm.org>2000-08-18 16:04:05 (GMT)
commitfe5c22a85e6740012143cdbdc384bd2ebc788c27 (patch)
tree91dab73f9fd828dc10dc5d007ce606dc67686e73
parent7b4fc17c6d6f6ee802ca909ee646eaedeee8e2ac (diff)
downloadcpython-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-xLib/test/regrtest.py4
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