summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/test/testcases.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/test/testcases.py b/django/test/testcases.py
index f524f1c34d..5589443aed 100644
--- a/django/test/testcases.py
+++ b/django/test/testcases.py
@@ -72,6 +72,8 @@ class TestCase(unittest.TestCase):
self.client = Client()
try:
self._pre_setup()
+ except (KeyboardInterrupt, SystemExit):
+ raise
except Exception:
import sys
result.addError(self, sys.exc_info())