diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-03-25 21:24:04 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-03-25 21:24:04 (GMT) |
commit | a8adceb431bd34cec6fe0c1e3aa55dc0e681de06 (patch) | |
tree | dc5ad2632fcf1af6a206f76e1e58ca7a1f82f734 | |
parent | cbdf15b0e7df8ad586ffc7ed585d39b45a6605e8 (diff) | |
download | cpython-a8adceb431bd34cec6fe0c1e3aa55dc0e681de06.zip cpython-a8adceb431bd34cec6fe0c1e3aa55dc0e681de06.tar.gz cpython-a8adceb431bd34cec6fe0c1e3aa55dc0e681de06.tar.bz2 |
add shorthands for expected failures and unexpected success
-rw-r--r-- | Lib/unittest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/unittest.py b/Lib/unittest.py index dde27fb..57e45d2 100644 --- a/Lib/unittest.py +++ b/Lib/unittest.py @@ -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): |