def METHOD_NAME(self, test, err):
    try:
        exc_info = self._exc_info_to_string(err, test)
    except TypeError:
        # 2.3: does not take test arg
        exc_info = self._exc_info_to_string(err)
    self.errors.append((test, exc_info))
    if self.showAll:
        self.stream.write('ERROR')
    elif self.dots:
        self.stream.write('E')