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

arigo noreply at buildbot.pypy.org
Mon May 11 11:52:33 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: cffi-1.0
Changeset: r1968:11bceeb4ecfa
Date: 2015-05-11 11:24 +0200
http://bitbucket.org/cffi/cffi/changeset/11bceeb4ecfa/

Log:	Python 3 compat

diff --git a/_cffi1/test_ffi_obj.py b/_cffi1/test_ffi_obj.py
--- a/_cffi1/test_ffi_obj.py
+++ b/_cffi1/test_ffi_obj.py
@@ -161,7 +161,7 @@
 def test_ffi_buffer():
     ffi = _cffi1_backend.FFI()
     a = ffi.new("signed char[]", [5, 6, 7])
-    assert ffi.buffer(a)[:] == '\x05\x06\x07'
+    assert ffi.buffer(a)[:] == b'\x05\x06\x07'
 
 def test_ffi_from_buffer():
     import array


More information about the pypy-commit mailing list