def addError(self, test, err):

        """Called when an error has occurred. 'err' is a tuple of values as

        returned by sys.exc_info().

        """

        self.errors.append((test, self._exc_info_to_string(err, test)))

        self._mirrorOutput = True

        self.tests_run.append([test.shortDescription(), self.testsRun, 0])
Called when an error has occurred. 'err' is a tuple of values as

        returned by sys.exc_info().

        
recipes/Python/578866_PythUnittest__Obtaresults_all_tests_run/recipe-578866.py