Cherry pick r86 from bug720816
This commit is contained in:
parent
7d51420e89
commit
385341a94e
16
run_tests.py
16
run_tests.py
@ -237,14 +237,14 @@ class GlanceTestResult(result.TextTestResult):
|
|||||||
elif self.dots:
|
elif self.dots:
|
||||||
stream.write(label[:1])
|
stream.write(label[:1])
|
||||||
return
|
return
|
||||||
self.errors.append((test, exc_info))
|
self.errors.append((test, exc_info))
|
||||||
test.passed = False
|
test.passed = False
|
||||||
if stream is not None:
|
if stream is not None:
|
||||||
if self.showAll:
|
if self.showAll:
|
||||||
self.colorizer.write("ERROR", 'red')
|
self.colorizer.write("ERROR", 'red')
|
||||||
self.stream.writeln()
|
self.stream.writeln()
|
||||||
elif self.dots:
|
elif self.dots:
|
||||||
stream.write('E')
|
stream.write('E')
|
||||||
|
|
||||||
def startTest(self, test):
|
def startTest(self, test):
|
||||||
unittest.TestResult.startTest(self, test)
|
unittest.TestResult.startTest(self, test)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user