run subprocess py.test scripts with the python version we're testing on
This commit is contained in:
parent
d44ff035d0
commit
323dd8a25a
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue