add shorthands for expected failures and unexpected success

This commit is contained in:
Benjamin Peterson 2009-03-25 21:24:04 +00:00
parent cbdf15b0e7
commit a8adceb431
1 changed files with 2 additions and 2 deletions

View File

@ -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):