Cherry pick r86 from bug720816

This commit is contained in:
jaypipes@gmail.com 2011-03-16 12:34:04 -04:00
parent 7d51420e89
commit 385341a94e

View File

@ -237,14 +237,14 @@ class GlanceTestResult(result.TextTestResult):
elif self.dots:
stream.write(label[:1])
return
self.errors.append((test, exc_info))
test.passed = False
if stream is not None:
if self.showAll:
self.colorizer.write("ERROR", 'red')
self.stream.writeln()
elif self.dots:
stream.write('E')
self.errors.append((test, exc_info))
test.passed = False
if stream is not None:
if self.showAll:
self.colorizer.write("ERROR", 'red')
self.stream.writeln()
elif self.dots:
stream.write('E')
def startTest(self, test):
unittest.TestResult.startTest(self, test)