[pypy-svn] r50483 - pypy/branch/applevel-ctypes2/pypy/module/_ffi/test
fijal at codespeak.net
fijal at codespeak.net
Thu Jan 10 11:01:57 CET 2008
Author: fijal
Date: Thu Jan 10 11:01:57 2008
New Revision: 50483
Modified:
pypy/branch/applevel-ctypes2/pypy/module/_ffi/test/test__ffi.py
Log:
Another check, be ultra-paranoid about all this.
Modified: pypy/branch/applevel-ctypes2/pypy/module/_ffi/test/test__ffi.py
==============================================================================
--- pypy/branch/applevel-ctypes2/pypy/module/_ffi/test/test__ffi.py (original)
+++ pypy/branch/applevel-ctypes2/pypy/module/_ffi/test/test__ffi.py Thu Jan 10 11:01:57 2008
@@ -356,4 +356,5 @@
A = _ffi.Array('i')
a = A.fromaddress(alloc(), 1)
assert a[0] == 3
+ assert A.fromaddress(a.buffer, 1)[0] == 3
# a.free() - don't free as ll2ctypes is complaining massively
More information about the Pypy-commit
mailing list