run subprocess py.test scripts with the python version we're testing on

This commit is contained in:
Benjamin Peterson 2010-11-08 17:25:02 -06:00
parent d44ff035d0
commit 323dd8a25a
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ class TmpTestdir:
if not self.request.config.getvalue("notoolsonpath"):
script = py.path.local.sysfind(scriptname)
assert script, "script %r not found" % scriptname
return (script,)
return (py.std.sys.executable, script,)
else:
py.test.skip("cannot run %r with --no-tools-on-path" % scriptname)