[Python-checkins] python/dist/src/Lib unittest.py,1.15,1.16
nnorwitz@users.sourceforge.net
nnorwitz@users.sourceforge.net
Fri, 31 May 2002 07:15:13 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv6497
Modified Files:
unittest.py
Log Message:
Fix printing plural (s or "").
Index: unittest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/unittest.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** unittest.py 21 May 2002 03:49:00 -0000 1.15
--- unittest.py 31 May 2002 14:15:11 -0000 1.16
***************
*** 617,621 ****
run = result.testsRun
self.stream.writeln("Ran %d test%s in %.3fs" %
! (run, run == 1 and "" or "s", timeTaken))
self.stream.writeln()
if not result.wasSuccessful():
--- 617,621 ----
run = result.testsRun
self.stream.writeln("Ran %d test%s in %.3fs" %
! (run, run != 1 and "s" or "", timeTaken))
self.stream.writeln()
if not result.wasSuccessful():