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())