[pypy-commit] pypy py3k: "pytest -A" also checks the PYTHON3 environment variable to find a python3 interpreter.

amauryfa noreply at buildbot.pypy.org
Mon Sep 3 22:39:25 CEST 2012


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3k
Changeset: r57110:9bc40cc81bd9
Date: 2012-09-02 22:08 +0200
http://bitbucket.org/pypy/pypy/changeset/9bc40cc81bd9/

Log:	"pytest -A" also checks the PYTHON3 environment variable to find a
	python3 interpreter.

diff --git a/pypy/conftest.py b/pypy/conftest.py
--- a/pypy/conftest.py
+++ b/pypy/conftest.py
@@ -10,7 +10,7 @@
 from pypy.tool.autopath import pypydir
 from pypy.tool import leakfinder, runsubprocess
 
-PYTHON3 = py.path.local.sysfind('python3')
+PYTHON3 = os.getenv('PYTHON3') or py.path.local.sysfind('python3')
 if PYTHON3 is not None:
     PYTHON3 = str(PYTHON3)
 


More information about the pypy-commit mailing list