[pypy-commit] pypy default: skip test_array_of_floats if the JIT in pypy-c does not support singlefloats

bivab noreply at buildbot.pypy.org
Sun May 5 14:04:22 CEST 2013


Author: David Schneider <david.schneider at picle.org>
Branch: 
Changeset: r63858:b8f74ad1ded0
Date: 2013-05-05 14:00 +0200
http://bitbucket.org/pypy/pypy/changeset/b8f74ad1ded0/

Log:	skip test_array_of_floats if the JIT in pypy-c does not support
	singlefloats

diff --git a/pypy/module/pypyjit/test_pypy_c/test_array.py b/pypy/module/pypyjit/test_pypy_c/test_array.py
--- a/pypy/module/pypyjit/test_pypy_c/test_array.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_array.py
@@ -119,6 +119,12 @@
         """)
 
     def test_array_of_floats(self):
+        try:
+            from __pypy__ import jit_backend_features
+            if 'singlefloats' not in jit_backend_features:
+                py.test.skip("test requres singlefloats support from the JIT backend")
+        except ImportError:
+            pass
         def main():
             from array import array
             img = array('f', [21.5]*1000)


More information about the pypy-commit mailing list