def METHOD_NAME(self, test, err):
    super(TextTestResult, self).METHOD_NAME(test, err)
    if self.showAll:
        self.stream.writeln("ERROR")
    elif self.dots:
        self.stream.write('E')
        self.stream.flush()