Author: Armin Rigo <[email protected]>
Branch: cffi-1.0
Changeset: r1943:947d257ae0fb
Date: 2015-05-09 12:14 +0200
http://bitbucket.org/cffi/cffi/changeset/947d257ae0fb/
Log: Passing test
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
@@ -157,3 +157,8 @@
assert str(e.value) == ("undefined struct/union name\n"
"struct never_heard_of_s\n"
" ^")
+
+def test_ffi_buffer():
+ ffi = _cffi1_backend.FFI()
+ a = ffi.new("signed char[]", [5, 6, 7])
+ assert ffi.buffer(a)[:] == '\x05\x06\x07'
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit