mirror of https://github.com/django/django.git
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()
|
self.client = Client()
|
||||||
try:
|
try:
|
||||||
self._pre_setup()
|
self._pre_setup()
|
||||||
|
except (KeyboardInterrupt, SystemExit):
|
||||||
|
raise
|
||||||
except Exception:
|
except Exception:
|
||||||
import sys
|
import sys
|
||||||
result.addError(self, sys.exc_info())
|
result.addError(self, sys.exc_info())
|
||||||
|
|
Loading…
Reference in New Issue