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:
Fred Drake 2000-08-18 16:04:05 +00:00
parent 7b4fc17c6d
commit fe5c22a85e
1 changed files with 2 additions and 2 deletions

View File

@ -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