[pypy-svn] r46747 - pypy/dist/pypy/rpython/lltypesystem/test
arigo at codespeak.net
arigo at codespeak.net
Wed Sep 19 21:37:23 CEST 2007
Author: arigo
Date: Wed Sep 19 21:37:22 2007
New Revision: 46747
Modified:
pypy/dist/pypy/rpython/lltypesystem/test/test_ll2ctypes.py
Log:
Substructures don't completely work in ll2ctypes - test...
Modified: pypy/dist/pypy/rpython/lltypesystem/test/test_ll2ctypes.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/test/test_ll2ctypes.py (original)
+++ pypy/dist/pypy/rpython/lltypesystem/test/test_ll2ctypes.py Wed Sep 19 21:37:22 2007
@@ -425,6 +425,20 @@
sc.contents.s1a.x += 3
assert s1ac.contents.x == 59
assert s.s1a.x == 59
+
+ py.test.skip("in-progress")
+ t = ctypes2lltype(lltype.Ptr(BIG), sc)
+ assert t == s
+ assert t.s1a == s.s1a
+ assert t.s1a.x == 59
+ s.s1b.x = 8888
+ assert t.s1b == s.s1b
+ assert t.s1b.x == 8888
+ t1 = ctypes2lltype(lltype.Ptr(S1), s1ac)
+ assert t.s1a == t1
+ assert t1.x == 59
+ t1.x += 1
+ assert sc.contents.s1a.x == 60
lltype.free(s, flavor='raw')
def test_recursive_struct(self):
More information about the Pypy-commit
mailing list