[pypy-commit] cffi cffi-1.0: Python 3 compat

arigo noreply at buildbot.pypy.org
Wed Apr 29 22:37:32 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: cffi-1.0
Changeset: r1883:dd6bfefe3e78
Date: 2015-04-29 22:35 +0200
http://bitbucket.org/cffi/cffi/changeset/dd6bfefe3e78/

Log:	Python 3 compat

diff --git a/_cffi1/test_verify1.py b/_cffi1/test_verify1.py
--- a/_cffi1/test_verify1.py
+++ b/_cffi1/test_verify1.py
@@ -1733,7 +1733,7 @@
                     (-1, ''),
                     (0xffffffff, 'U'),
                     (maxulong, 'UL'),
-                    (-maxulong / 3, 'L')]:
+                    (-int(maxulong / 3), 'L')]:
         if c2c and sys.platform == 'win32':
             continue     # enums may always be signed with MSVC
         ffi = FFI()


More information about the pypy-commit mailing list