Author: Armin Rigo <[email protected]>
Branch:
Changeset: r1301:dae3c39125de
Date: 2013-08-01 11:03 +0200
http://bitbucket.org/cffi/cffi/changeset/dae3c39125de/
Log: SIZE_OF_LONG may differ from SIZE_OF_PTR
diff --git a/testing/backend_tests.py b/testing/backend_tests.py
--- a/testing/backend_tests.py
+++ b/testing/backend_tests.py
@@ -537,13 +537,13 @@
for c_type, expected_size in [
('char', 1),
('unsigned int', 4),
- ('char *', SIZE_OF_LONG),
+ ('char *', SIZE_OF_PTR),
('int[5]', 20),
('struct foo', 12),
('union foo', 4),
]:
size = ffi.sizeof(c_type)
- assert size == expected_size
+ assert size == expected_size, (size, expected_size, ctype)
def test_sizeof_cdata(self):
ffi = FFI(backend=self.Backend())
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit