Fix printing plural (s or "").

This commit is contained in:
Neal Norwitz 2002-05-31 14:15:11 +00:00
parent 5aee504ccb
commit 7616504dcf

View file

@ -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 (")