Author: Armin Rigo <ar...@tunes.org>
Branch: cffi-1.0
Changeset: r77196:1f30bf3baf5a
Date: 2015-05-08 10:15 +0200
http://bitbucket.org/pypy/pypy/changeset/1f30bf3baf5a/

Log:    Needs to import _cffi_backend at app-level, otherwise the startup()
        method is not called

diff --git a/pypy/module/_cffi_backend/test/test_recompiler.py 
b/pypy/module/_cffi_backend/test/test_recompiler.py
--- a/pypy/module/_cffi_backend/test/test_recompiler.py
+++ b/pypy/module/_cffi_backend/test/test_recompiler.py
@@ -13,6 +13,9 @@
         from _cffi1 import recompiler     # needs to be at least cffi 1.0.0b3
     except ImportError:
         py.test.skip("system cffi module not found or older than 1.0.0")
+    space.appexec([], """():
+        import _cffi_backend     # force it to be initialized
+    """)
     module_name = '_CFFI_' + module_name
     rdir = udir.ensure('recompiler', dir=1)
     rdir.join('Python.h').write(
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to