Ticket #6031: testcases_exc_in_pre_setup.diff
File testcases_exc_in_pre_setup.diff, 613 bytes (added by , 17 years ago) |
---|
-
django/test/testcases.py
70 70 include a call to super().setUp(). 71 71 """ 72 72 self.client = Client() 73 self._pre_setup() 73 try: 74 self._pre_setup() 75 except Exception: 76 import sys 77 result.addError(self, sys.exc_info()) 78 return 74 79 super(TestCase, self).__call__(result) 75 80 76 81 def assertRedirects(self, response, expected_url, status_code=302,