tests/run-tests.py
changeset 40270 8783710b1d58
parent 40263 8cf459d8b111
child 40469 f8154ddaaed3
child 40987 bb5d74a35477
equal deleted inserted replaced
40269:52b773f5e9a4 40270:8783710b1d58
  1217     def refpath(self):
  1217     def refpath(self):
  1218         return os.path.join(self._testdir, b'%s.out' % self.bname)
  1218         return os.path.join(self._testdir, b'%s.out' % self.bname)
  1219 
  1219 
  1220     def _run(self, env):
  1220     def _run(self, env):
  1221         py3switch = self._py3warnings and b' -3' or b''
  1221         py3switch = self._py3warnings and b' -3' or b''
  1222         cmd = b'%s%s "%s"' % (PYTHON, py3switch, self.path)
  1222         # Quote the python(3) executable for Windows
       
  1223         cmd = b'"%s"%s "%s"' % (PYTHON, py3switch, self.path)
  1223         vlog("# Running", cmd)
  1224         vlog("# Running", cmd)
  1224         normalizenewlines = os.name == 'nt'
  1225         normalizenewlines = os.name == 'nt'
  1225         result = self._runcommand(cmd, env,
  1226         result = self._runcommand(cmd, env,
  1226                                   normalizenewlines=normalizenewlines)
  1227                                   normalizenewlines=normalizenewlines)
  1227         if self._aborted:
  1228         if self._aborted: