diff --git a/tests/utils.py b/tests/utils.py index caccb18086..6a3ee66b1d 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -25,6 +25,7 @@ import errno import logging import socket +import sys import time import subprocess import threading @@ -186,7 +187,7 @@ def _start_process(self, extra_cmd_args, popen_cwd): """Starts the process running the server.""" # The "-u" option forces stdin, stdout and stderr to be unbuffered. - command = ['python', '-u', self.server] + extra_cmd_args + command = [sys.executable, '-u', self.server] + extra_cmd_args # Reusing one subprocess in multiple tests, but split up the logs for each. self.__server_process = subprocess.Popen(command,