commit | 7616504dcf49d233d38a7518cdd28a9cc6531b74 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Fri May 31 14:15:11 2002 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Fri May 31 14:15:11 2002 +0000 |
tree | 939f6f419469ef9756ec5a65796446da9786f1fa | |
parent | 5aee504ccb81ed6114e625af7bfa13635095a458 [diff] [blame] |
Fix printing plural (s or "").
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 @@ 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 (")