Kaydet (Commit) e5f7ed87 authored tarafından Malcolm Tredinnick's avatar Malcolm Tredinnick

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
üst e715ead5
......@@ -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())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment