From 323dd8a25aee512b9f3092538b2b3f4ac6f07334 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 8 Nov 2010 17:25:02 -0600 Subject: [PATCH] run subprocess py.test scripts with the python version we're testing on --- pytest/plugin/pytester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest/plugin/pytester.py b/pytest/plugin/pytester.py index 11d9ec0d3..24c9c6fae 100644 --- a/pytest/plugin/pytester.py +++ b/pytest/plugin/pytester.py @@ -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)