When a KeyboardInterrupt is caught, just use the "raise" syntax to
re-raise it instead of re-raising it "manually" the ugly way.
This commit is contained in:
parent
7b4fc17c6d
commit
fe5c22a85e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue