[pypy-svn] r46245 - in pypy/branch/pypy-more-rtti-inprogress/rpython/lltypesystem: . test

fijal at codespeak.net fijal at codespeak.net
Sun Sep 2 20:03:49 CEST 2007


Author: fijal
Date: Sun Sep  2 20:03:49 2007
New Revision: 46245

Modified:
   pypy/branch/pypy-more-rtti-inprogress/rpython/lltypesystem/ll2ctypes.py
   pypy/branch/pypy-more-rtti-inprogress/rpython/lltypesystem/test/test_ll2ctypes.py
Log:
Remove this hack and skip the test


Modified: pypy/branch/pypy-more-rtti-inprogress/rpython/lltypesystem/ll2ctypes.py
==============================================================================
--- pypy/branch/pypy-more-rtti-inprogress/rpython/lltypesystem/ll2ctypes.py	(original)
+++ pypy/branch/pypy-more-rtti-inprogress/rpython/lltypesystem/ll2ctypes.py	Sun Sep  2 20:03:49 2007
@@ -43,9 +43,6 @@
         FIELDTYPE = S._flds[fieldname]
         if max_n is not None and fieldname == S._arrayfld:
             cls = build_ctypes_array(FIELDTYPE, max_n)
-        elif isinstance(FIELDTYPE, lltype.Ptr) and FIELDTYPE.TO is S:
-            # XXX this is not the right hack to handle circular structures!
-            cls = ctypes.POINTER(S._name)
         else:
             cls = get_ctypes_type(FIELDTYPE)
         fields.append((fieldname, cls))

Modified: pypy/branch/pypy-more-rtti-inprogress/rpython/lltypesystem/test/test_ll2ctypes.py
==============================================================================
--- pypy/branch/pypy-more-rtti-inprogress/rpython/lltypesystem/test/test_ll2ctypes.py	(original)
+++ pypy/branch/pypy-more-rtti-inprogress/rpython/lltypesystem/test/test_ll2ctypes.py	Sun Sep  2 20:03:49 2007
@@ -406,7 +406,7 @@
         lltype.free(s, flavor='raw')
 
     def test_recursive_struct(self):
-        # XXX sucky way of creating those
+        py.test.skip("Not implemented")
         SX = lltype.ForwardReference()
         S1 = lltype.Struct('S1', ('x', lltype.Ptr(SX)))
         S1.x.TO.become(S1)


More information about the pypy-svn mailing list