Author: Armin Rigo <[email protected]>
Branch:
Changeset: r88354:02aa2a6c1bbf
Date: 2016-11-13 15:59 +0100
http://bitbucket.org/pypy/pypy/changeset/02aa2a6c1bbf/
Log: backward compatibility: if we don't give --pypy, use sys.executable
if that's a pypy with jit
diff --git a/pypy/module/pypyjit/test_pypy_c/test_00_model.py
b/pypy/module/pypyjit/test_pypy_c/test_00_model.py
--- a/pypy/module/pypyjit/test_pypy_c/test_00_model.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_00_model.py
@@ -28,6 +28,12 @@
out = subprocess.check_output([pypy_c, '-c',
"import sys; print(sys.version)"])
assert out.startswith('3'), "%r is a not a pypy 3" % (pypy_c,)
+ else:
+ # backward compatibility: use pypy_c = sys.executable
+ # if that's a pypy with a JIT
+ if ('__pypy__' in sys.builtin_module_names and
+ sys.pypy_translation_info['translation.jit']):
+ pypy_c = sys.executable
cls.pypy_c = pypy_c
cls.tmpdir = udir.join('test-pypy-jit')
cls.tmpdir.ensure(dir=True)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit