Ticket #6031: testcases_exc_in_pre_setup.diff

File testcases_exc_in_pre_setup.diff, 613 bytes (added by Thomas Güttler <hv@…>, 17 years ago)
  • django/test/testcases.py

     
    7070        include a call to super().setUp().
    7171        """
    7272        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
    7479        super(TestCase, self).__call__(result)
    7580
    7681    def assertRedirects(self, response, expected_url, status_code=302,
Back to Top