[pypy-commit] pypy default: Import cffi/170d74235eec

arigo noreply at buildbot.pypy.org
Fri May 31 15:26:30 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r64681:405de91d1f2a
Date: 2013-05-31 15:25 +0200
http://bitbucket.org/pypy/pypy/changeset/405de91d1f2a/

Log:	Import cffi/170d74235eec

diff --git a/pypy/module/test_lib_pypy/cffi_tests/test_ffi_backend.py b/pypy/module/test_lib_pypy/cffi_tests/test_ffi_backend.py
--- a/pypy/module/test_lib_pypy/cffi_tests/test_ffi_backend.py
+++ b/pypy/module/test_lib_pypy/cffi_tests/test_ffi_backend.py
@@ -98,10 +98,10 @@
         s = ffi.new("struct s1 *")
         setattr(s, name, value)
         assert getattr(s, name) == value
-        raw1 = bytes(ffi.buffer(s))
+        raw1 = ffi.buffer(s)[:]
         if lib is not None:
             t = lib.try_with_value(fnames.index(name), value)
-            raw2 = bytes(ffi.buffer(t, len(raw1)))
+            raw2 = ffi.buffer(t, len(raw1))[:]
             assert raw1 == raw2
 
     def test_bitfield_basic(self):


More information about the pypy-commit mailing list