Fixed run_tests.py addError() method since I noted it was faulty in another branch...

This commit is contained in:
jaypipes@gmail.com 2011-03-16 12:30:09 -04:00
parent 599aec7b81
commit 3926bfe78d

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)