Browse Source

Convert to Python 3: call print() properly

Alois Mahdal 1 year ago
parent
commit
e7066b5aa3
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      doc/examples/example_test.py

+ 2
- 1
doc/examples/example_test.py View File

@@ -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