From bb392ea74978ed495d23ffa31bd7da134b71f554 Mon Sep 17 00:00:00 2001 From: cclauss Date: Fri, 1 Jun 2018 09:02:58 -0400 Subject: [PATCH] print() is a function in Python 3 --- .test-infra/jenkins/verify_performance_test_results_test.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.test-infra/jenkins/verify_performance_test_results_test.py b/.test-infra/jenkins/verify_performance_test_results_test.py index 22f6f3b52fe1..f8d7d8039623 100644 --- a/.test-infra/jenkins/verify_performance_test_results_test.py +++ b/.test-infra/jenkins/verify_performance_test_results_test.py @@ -19,6 +19,8 @@ # This script performs testing of scenarios from verify_performance_test_results.py # +from __future__ import print_function + import unittest, mock from mock import patch from verify_performance_test_results import create_report @@ -27,7 +29,7 @@ class VerifyAnalysisScript(unittest.TestCase): """Tests for `verify_performance_test_results.py`.""" def setUp(self): - print "Test name:", self._testMethodName + print("Test name:", self._testMethodName) @patch('verify_performance_test_results.count_queries', return_value=0) def test_create_daily_report_when_no_data_was_uploaded(self, *args): @@ -86,4 +88,4 @@ def test_create_daily_report_when_average_time_does_not_change(self, *args): #TODO: Add more testing scenarios, when single performance tests will be finished. if __name__ == '__main__': - unittest.main() \ No newline at end of file + unittest.main()