diff --git a/python/run-tests.py b/python/run-tests.py index 3eb45e47685a1..297ba22e99619 100755 --- a/python/run-tests.py +++ b/python/run-tests.py @@ -114,7 +114,7 @@ def main(): start_time = time.time() for python_exec in python_execs: python_implementation = subprocess.check_output( - [python_exec, "-c", "import platform; print platform.python_implementation()"]).strip() + [python_exec, "-c", "import platform; print(platform.python_implementation())"]).strip() print("Testing with `%s`: " % python_exec, end='') subprocess.call([python_exec, "--version"])