Commit e5f7ed87 authored by Malcolm Tredinnick's avatar Malcolm Tredinnick
Browse files

Fixed #6478 -- Allow tests to be interrupted with system exits and ^C. Thanks,

Bastian Kleineidam.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7056 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent e715ead5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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())