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
This commit is contained in:
parent
e715ead55f
commit
e5f7ed87d4
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue