mirror of
https://github.com/python/cpython.git
synced 2025-09-17 22:20:23 +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:
|
||||
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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue