Merge "Fixing nits in i18n patch"
This commit is contained in:
commit
1d918f2da3
|
@ -17,6 +17,7 @@ import unittest
|
|||
from oslo_config import cfg
|
||||
|
||||
import syntribos
|
||||
from syntribos._i18n import _
|
||||
from syntribos.formatters.json_formatter import JSONFormatter
|
||||
from syntribos.runner import Runner
|
||||
import syntribos.utils.remotes
|
||||
|
@ -254,5 +255,5 @@ class IssueTestResult(unittest.TextTestResult):
|
|||
esuff="s" * bool(num_err - 1)))
|
||||
if test_log:
|
||||
print(syntribos.SEP)
|
||||
print(syntribos._("LOG PATH...: %s") % test_log)
|
||||
print(_("LOG PATH...: %s") % test_log)
|
||||
print(syntribos.SEP)
|
||||
|
|
|
@ -428,7 +428,7 @@ class Runner(object):
|
|||
LOG.info(_("Run time: %s sec."), run_time)
|
||||
if hasattr(result, "testsRun"):
|
||||
num_tests = result.testsRun - result.testsRunSinceLastPrint
|
||||
print(_("\nRan %(num)s test(s) in %.3(time)f s\n") %
|
||||
print(_("\nRan %(num)s test(s) in %(time).3f s\n") %
|
||||
{"num": num_tests, "time": run_time})
|
||||
result.testsRunSinceLastPrint = result.testsRun
|
||||
|
||||
|
|
Loading…
Reference in New Issue