Fixing nits in i18n patch
Running syntribos throws an error due to nits in the i18n patch. This patch fixes the errors in runner.py and result.py. Change-Id: Ic1c041f586e4f556fd1c1e30b6dc3f3dcd0284fe
This commit is contained in:
parent
47a1d21ef8
commit
c300ca8313
|
@ -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