add shorthands for expected failures and unexpected success
This commit is contained in:
parent
cbdf15b0e7
commit
a8adceb431
|
@ -879,7 +879,7 @@ class _TextTestResult(TestResult):
|
||||||
if self.showAll:
|
if self.showAll:
|
||||||
self.stream.writeln("expected failure")
|
self.stream.writeln("expected failure")
|
||||||
elif self.dots:
|
elif self.dots:
|
||||||
self.stream.write(".")
|
self.stream.write("x")
|
||||||
self.stream.flush()
|
self.stream.flush()
|
||||||
|
|
||||||
def addUnexpectedSuccess(self, test):
|
def addUnexpectedSuccess(self, test):
|
||||||
|
@ -887,7 +887,7 @@ class _TextTestResult(TestResult):
|
||||||
if self.showAll:
|
if self.showAll:
|
||||||
self.stream.writeln("unexpected success")
|
self.stream.writeln("unexpected success")
|
||||||
elif self.dots:
|
elif self.dots:
|
||||||
self.stream.write(".")
|
self.stream.write("u")
|
||||||
self.stream.flush()
|
self.stream.flush()
|
||||||
|
|
||||||
def printErrors(self):
|
def printErrors(self):
|
||||||
|
|
Loading…
Reference in New Issue