# HG changeset patch # User Matt Harbison # Date 2018-10-14 03:08:29 # Node ID 8783710b1d58d2ccc0f611904af244a1dde214d4 # Parent 52b773f5e9a4fdde221f1466c352c37776c2a240 run-tests: restore quoting the python executable for running *.py tests This was accidentally dropped in 8cf459d8b111. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1219,7 +1219,8 @@ class PythonTest(Test): def _run(self, env): py3switch = self._py3warnings and b' -3' or b'' - cmd = b'%s%s "%s"' % (PYTHON, py3switch, self.path) + # Quote the python(3) executable for Windows + cmd = b'"%s"%s "%s"' % (PYTHON, py3switch, self.path) vlog("# Running", cmd) normalizenewlines = os.name == 'nt' result = self._runcommand(cmd, env,