[pypy-commit] cffi default: Oups, fix.
arigo
noreply at buildbot.pypy.org
Fri May 31 15:25:04 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r1261:170d74235eec
Date: 2013-05-31 15:24 +0200
http://bitbucket.org/cffi/cffi/changeset/170d74235eec/
Log: Oups, fix.
diff --git a/testing/test_ffi_backend.py b/testing/test_ffi_backend.py
--- a/testing/test_ffi_backend.py
+++ b/testing/test_ffi_backend.py
@@ -97,10 +97,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