Author: Armin Rigo <ar...@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
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to