def METHOD_NAME(self, test, err):
    _PythonTextTestResult.METHOD_NAME(self, test, err)
    # Support for class/module exceptions (test is instance of _ErrorHolder)
    if not hasattr(self, '_current_errors_stack') or test.__class__.__name__ == '_ErrorHolder':
        # Not in start...end, so, report error now (i.e.: django pre/post-setup)
        self._reportErrors([self.errors[-1]], [], '', self.get_test_name(test))
    else:
        self._current_errors_stack.append(self.errors[-1])