# Distributed under the terms of the GNU General Public License v2
# $Id$
-import os, unittest, time
+import os, sys, time, unittest
import portage.tests
def main():
result.addTodo(self,"%s: TODO" % testMethod)
else:
result.addFailure(self, self._exc_info())
- except KeyboardInterrupt:
+ except (KeyboardInterrupt, SystemExit):
raise
except:
- result.addError(self, self._exc_info())
+ result.addError(self, sys.exc_info())
try:
self.tearDown()
except KeyboardInterrupt: