'Called when a test raises an error. If C{realtime} is set, then it
prints the error to the stream.
@param test: L{ITestCase} that raised the error.
@param error: L{failure.Failure} containing the error.'

def addError(self, test, error):

    error = self._getFailure(error)
    super(Reporter, self).addError(test, error)
    if self.realtime:
        error = self.errors[(-1)][1]
        self._write(self._formatFailureTraceback(error))
