Show More
@@ -1213,7 +1213,7 b' class PythonTest(Test):' | |||
|
1213 | 1213 | |
|
1214 | 1214 | def _run(self, env): |
|
1215 | 1215 | py3kswitch = self._py3kwarnings and b' -3' or b'' |
|
1216 | cmd = b'%s%s "%s"' % (PYTHON, py3kswitch, self.path) | |
|
1216 | cmd = b'"%s"%s "%s"' % (PYTHON, py3kswitch, self.path) | |
|
1217 | 1217 | vlog("# Running", cmd) |
|
1218 | 1218 | normalizenewlines = os.name == 'nt' |
|
1219 | 1219 | result = self._runcommand(cmd, env, |
@@ -1475,7 +1475,7 b' class TTest(Test):' | |||
|
1475 | 1475 | # We've just entered a Python block. Add the header. |
|
1476 | 1476 | inpython = True |
|
1477 | 1477 | addsalt(prepos, False) # Make sure we report the exit code. |
|
1478 | script.append(b'%s -m heredoctest <<EOF\n' % PYTHON) | |
|
1478 | script.append(b'"%s" -m heredoctest <<EOF\n' % PYTHON) | |
|
1479 | 1479 | addsalt(n, True) |
|
1480 | 1480 | script.append(l[2:]) |
|
1481 | 1481 | elif l.startswith(b' ... '): # python inlines |
@@ -3078,7 +3078,7 b' class TestRunner(object):' | |||
|
3078 | 3078 | if self._hgpath is not None: |
|
3079 | 3079 | return self._hgpath |
|
3080 | 3080 | |
|
3081 | cmd = b'%s -c "import mercurial; print (mercurial.__path__[0])"' | |
|
3081 | cmd = b'"%s" -c "import mercurial; print (mercurial.__path__[0])"' | |
|
3082 | 3082 | cmd = cmd % PYTHON |
|
3083 | 3083 | if PYTHON3: |
|
3084 | 3084 | cmd = _strpath(cmd) |
General Comments 0
You need to be logged in to leave comments.
Login now