[pypy-commit] pypy cffi-1.0: Needs to import _cffi_backend at app-level, otherwise the startup()
arigo
noreply at buildbot.pypy.org
Fri May 8 10:25:05 CEST 2015
Author: Armin Rigo <arigo at 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(
More information about the pypy-commit
mailing list