[pypy-commit] cffi default: Bah, fix

arigo noreply at buildbot.pypy.org
Fri Aug 2 00:50:37 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r1338:e6d841bc4677
Date: 2013-08-02 00:45 +0200
http://bitbucket.org/cffi/cffi/changeset/e6d841bc4677/

Log:	Bah, fix

diff --git a/cffi/api.py b/cffi/api.py
--- a/cffi/api.py
+++ b/cffi/api.py
@@ -54,7 +54,8 @@
             # _cffi_backend.so compiled.
             import _cffi_backend as backend
             from . import __version__
-            assert backend.__version__ == __version__
+            assert (backend.__version__ == __version__ or
+                    backend.__version__ == __version__[:3])
             # (If you insist you can also try to pass the option
             # 'backend=backend_ctypes.CTypesBackend()', but don't
             # rely on it!  It's probably not going to work well.)


More information about the pypy-commit mailing list