Browse Source

Convert to Python 3: call print() properly

Alois Mahdal 2 years 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
             (operator.eq, PyCalcDriver, CliCalcDriver),
92
             (operator.eq, PyCalcDriver, CliCalcDriver),
93
         ]
93
         ]
94
         tracker = hoover.regression_test(argsrc, tests, self.driver_settings)
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
         if tracker.errors_found():
97
         if tracker.errors_found():
97
             self.fail(tracker.format_report())
98
             self.fail(tracker.format_report())
98
 
99