[pypy-commit] pypy default: Bah. Fix

arigo noreply at buildbot.pypy.org
Thu May 30 21:34:37 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r64667:ab8e1d8571e9
Date: 2013-05-30 21:33 +0200
http://bitbucket.org/pypy/pypy/changeset/ab8e1d8571e9/

Log:	Bah. Fix

diff --git a/pypy/module/pypyjit/test_pypy_c/test_bug.py b/pypy/module/pypyjit/test_pypy_c/test_bug.py
--- a/pypy/module/pypyjit/test_pypy_c/test_bug.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_bug.py
@@ -6,6 +6,11 @@
 def test_bug1():
     if not sys.platform.startswith('linux'):
         py.test.skip("linux-only test")
+    if '__pypy__' not in sys.builtin_module_names:
+        try:
+            import cffi
+        except ImportError, e:
+            py.test.skip(str(e))
 
     cmdline = ['taskset', '-c', '0',
                sys.executable, os.path.join(localdir, 'bug1.py')]


More information about the pypy-commit mailing list