From 7616504dcf49d233d38a7518cdd28a9cc6531b74 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 31 May 2002 14:15:11 +0000 Subject: Fix printing plural (s or ""). --- Lib/unittest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (") -- cgit v0.12