[pypy-commit] pypy default: don't fail when there is no JIT

cfbolz pypy.commits at gmail.com
Mon May 21 10:04:04 EDT 2018


Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
Branch: 
Changeset: r94629:340a8bb00e6c
Date: 2018-05-21 16:02 +0200
http://bitbucket.org/pypy/pypy/changeset/340a8bb00e6c/

Log:	don't fail when there is no JIT

diff --git a/pypy/module/__pypy__/test/test_special.py b/pypy/module/__pypy__/test/test_special.py
--- a/pypy/module/__pypy__/test/test_special.py
+++ b/pypy/module/__pypy__/test/test_special.py
@@ -139,7 +139,10 @@
         cls.w_runappdirect = cls.space.wrap(cls.runappdirect)
 
     def test_jit_backend_features(self):
-        from __pypy__ import jit_backend_features
+        try:
+            from __pypy__ import jit_backend_features
+        except ImportError:
+            skip("compiled without jit")
         supported_types = jit_backend_features
         assert isinstance(supported_types, list)
         for x in supported_types:


More information about the pypy-commit mailing list