Author: brane Date: Sat Jun 9 08:10:10 2018 New Revision: 1833223 URL: http://svn.apache.org/viewvc?rev=1833223&view=rev Log: Make the tests run with Python 3.x.
* build/check.py: Add parentheses around 'print' statement arguments so that they work when 'print' is a function. Modified: serf/trunk/build/check.py Modified: serf/trunk/build/check.py URL: http://svn.apache.org/viewvc/serf/trunk/build/check.py?rev=1833223&r1=1833222&r2=1833223&view=diff ============================================================================== --- serf/trunk/build/check.py (original) +++ serf/trunk/build/check.py Sat Jun 9 08:10:10 2018 @@ -52,16 +52,16 @@ if __name__ == '__main__': # Find test responses and run them one by one for case in glob.glob(testdir + "/testcases/*.response"): - print "== Testing %s ==" % (case) + print("== Testing %s ==" % (case)) try: subprocess.check_call([SERF_RESPONSE_EXE, case]) - except subprocess.CalledProcessError, x: - print "ERROR: test failed in '%s', exit code=%d" % (x.cmd, x.returncode) + except subprocess.CalledProcessError as x: + print("ERROR: test failed in '%s', exit code=%d" % (x.cmd, x.returncode)) sys.exit(1) - print "== Running the unit tests ==" + print("== Running the unit tests ==") try: subprocess.check_call(TEST_ALL_EXE) - except subprocess.CalledProcessError, x: - print "ERROR: test(s) failed in '%s', exit code=%d" % (x.cmd, x.returncode) + except subprocess.CalledProcessError as x: + print("ERROR: test(s) failed in '%s', exit code=%d" % (x.cmd, x.returncode)) sys.exit(1)