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):
if self.showAll:
self.stream.writeln("expected failure")
elif self.dots:
self.stream.write(".")
self.stream.write("x")
self.stream.flush()
def addUnexpectedSuccess(self, test):
......@@ -887,7 +887,7 @@ class _TextTestResult(TestResult):
if self.showAll:
self.stream.writeln("unexpected success")
elif self.dots:
self.stream.write(".")
self.stream.write("u")
self.stream.flush()
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