summaryrefslogtreecommitdiffstats
path: root/Lib/unittest.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-05-31 14:15:11 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-05-31 14:15:11 (GMT)
commit7616504dcf49d233d38a7518cdd28a9cc6531b74 (patch)
tree939f6f419469ef9756ec5a65796446da9786f1fa /Lib/unittest.py
parent5aee504ccb81ed6114e625af7bfa13635095a458 (diff)
downloadcpython-7616504dcf49d233d38a7518cdd28a9cc6531b74.zip
cpython-7616504dcf49d233d38a7518cdd28a9cc6531b74.tar.gz
cpython-7616504dcf49d233d38a7518cdd28a9cc6531b74.tar.bz2
Fix printing plural (s or "").
Diffstat (limited to 'Lib/unittest.py')
-rw-r--r--Lib/unittest.py2
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 (")