mirror of
https://github.com/python/cpython.git
synced 2025-09-18 06:30:38 +00:00
add shorthands for expected failures and unexpected success
This commit is contained in:
parent
cbdf15b0e7
commit
a8adceb431
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue