# HG changeset patch -- Bitbucket.org
# Project pytest
# URL http://bitbucket.org/hpk42/pytest/overview
# User Benjamin Peterson <benja...@python.org>
# Date 1289258702 21600
# Node ID f52a7803cac89ab3cbcceeca38b8f218ad58ffbc
# Parent  64e7dded2022a6f8cd9078539ebec395857e266b
run subprocess py.test scripts with the python version we're testing on

--- 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)
_______________________________________________
py-svn mailing list
py-svn@codespeak.net
http://codespeak.net/mailman/listinfo/py-svn

Reply via email to