mirror of
https://github.com/python/cpython.git
synced 2025-08-28 04:35:02 +00:00
Fix printing plural (s or "").
This commit is contained in:
parent
5aee504ccb
commit
7616504dcf
1 changed files with 1 additions and 1 deletions
|
@ -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 (")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue