Commit a8adceb4 authored by Benjamin Peterson's avatar Benjamin Peterson

add shorthands for expected failures and unexpected success

parent cbdf15b0
...@@ -879,7 +879,7 @@ class _TextTestResult(TestResult): ...@@ -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): ...@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment