# HG changeset patch # User Matt Harbison # Date 2018-09-20 00:45:57 # Node ID 7f8b7a0605840abb04c4c3de9ec7059bd334e5c9 # Parent 4dca2e028f0a16c71632755ff83c7c64c2bd0ed5 run-tests: quote PYTHON when spawning a subprocess Same reason as 5abc47d4ca6b. This covers running *.py tests, as well as inline python blocks. I didn't hit the path around line 3079, but it seems correct to quote. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1213,7 +1213,7 @@ class PythonTest(Test): def _run(self, env): py3kswitch = self._py3kwarnings and b' -3' or b'' - cmd = b'%s%s "%s"' % (PYTHON, py3kswitch, self.path) + cmd = b'"%s"%s "%s"' % (PYTHON, py3kswitch, self.path) vlog("# Running", cmd) normalizenewlines = os.name == 'nt' result = self._runcommand(cmd, env, @@ -1475,7 +1475,7 @@ class TTest(Test): # We've just entered a Python block. Add the header. inpython = True addsalt(prepos, False) # Make sure we report the exit code. - script.append(b'%s -m heredoctest <