Author: Armin Rigo <>
Branch: py3k
Changeset: r87323:1953c9927f3b
Date: 2016-09-22 15:29 +0200

Log:    In the py3k branch, use 'python3.3' to run -A tests, not 'python3'.
        Some tests fail if the latter is a more recent version.

diff --git a/pypy/ b/pypy/
--- a/pypy/
+++ b/pypy/
@@ -5,7 +5,8 @@
     # some tests fail otherwise
-PYTHON3 = os.getenv('PYTHON3') or py.path.local.sysfind('python3')
+LOOK_FOR_PYTHON3 = 'python3.3'
+PYTHON3 = os.getenv('PYTHON3') or py.path.local.sysfind(LOOK_FOR_PYTHON3)
 if PYTHON3 is not None:
     PYTHON3 = str(PYTHON3)
diff --git a/pypy/interpreter/test/ 
--- a/pypy/interpreter/test/
+++ b/pypy/interpreter/test/
@@ -7,7 +7,7 @@
 from rpython.tool.udir import udir
 from contextlib import contextmanager
 from pypy import pypydir
-from pypy.conftest import PYTHON3
+from pypy.conftest import PYTHON3, LOOK_FOR_PYTHON3
 from pypy.interpreter.test.conftest import banner
 from lib_pypy._pypy_interact import irc_header
@@ -18,8 +18,8 @@
     if PYTHON3:
         return PYTHON3
     import py.test
-"Test requires 'python3' (not found in PATH) or a PYTHON3 "
-                 "environment variable set")
+"Test requires %r (not found in PATH) or a PYTHON3 "
+                 "environment variable set" % (LOOK_FOR_PYTHON3,))
 _counter = 0
 def _get_next_path(ext='.py'):
pypy-commit mailing list

Reply via email to