diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-05-31 14:15:11 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-05-31 14:15:11 (GMT) |
commit | 7616504dcf49d233d38a7518cdd28a9cc6531b74 (patch) | |
tree | 939f6f419469ef9756ec5a65796446da9786f1fa | |
parent | 5aee504ccb81ed6114e625af7bfa13635095a458 (diff) | |
download | cpython-7616504dcf49d233d38a7518cdd28a9cc6531b74.zip cpython-7616504dcf49d233d38a7518cdd28a9cc6531b74.tar.gz cpython-7616504dcf49d233d38a7518cdd28a9cc6531b74.tar.bz2 |
Fix printing plural (s or "").
-rw-r--r-- | Lib/unittest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest.py b/Lib/unittest.py index a97a962..2523f43 100644 --- a/Lib/unittest.py +++ b/Lib/unittest.py @@ -616,7 +616,7 @@ class TextTestRunner: self.stream.writeln(result.separator2) run = result.testsRun self.stream.writeln("Ran %d test%s in %.3fs" % - (run, run == 1 and "" or "s", timeTaken)) + (run, run != 1 and "s" or "", timeTaken)) self.stream.writeln() if not result.wasSuccessful(): self.stream.write("FAILED (") |