annoying that often you have to hit ^C numerous times before it
works. The solution: before the "except:" clause, insert "except
KeyboardInterrupt: raise". This propagates KeyboardInterrupt out,
stopping the test in its tracks.
try:
try:
self.setUp()
+ except KeyboardInterrupt:
+ raise
except:
result.addError(self, self.__exc_info())
return
ok = 1
except self.failureException, e:
result.addFailure(self, self.__exc_info())
+ except KeyboardInterrupt:
+ raise
except:
result.addError(self, self.__exc_info())
try:
self.tearDown()
+ except KeyboardInterrupt:
+ raise
except:
result.addError(self, self.__exc_info())
ok = 0