瀏覽代碼

Convert to Python 3: call print() properly

Alois Mahdal 2 年之前
父節點
當前提交
e7066b5aa3
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      doc/examples/example_test.py

+ 2
- 1
doc/examples/example_test.py 查看文件

@@ -92,7 +92,8 @@ class TestCase(unittest.TestCase):
92 92
             (operator.eq, PyCalcDriver, CliCalcDriver),
93 93
         ]
94 94
         tracker = hoover.regression_test(argsrc, tests, self.driver_settings)
95
-        print hoover.jsDump(tracker.getstats())
95
+        stats_text = hoover.jsDump(tracker.getstats())
96
+        print(stats_text)
96 97
         if tracker.errors_found():
97 98
             self.fail(tracker.format_report())
98 99