[pypy-svn] r32253 - pypy/branch/kill-keepalives/pypy/translator/c/test

arigo at codespeak.net arigo at codespeak.net
Wed Sep 13 12:26:21 CEST 2006


Author: arigo
Date: Wed Sep 13 12:26:18 2006
New Revision: 32253

Modified:
   pypy/branch/kill-keepalives/pypy/translator/c/test/test_lltyped.py
Log:
This test is still meaningful with Struct instead of GcStruct.


Modified: pypy/branch/kill-keepalives/pypy/translator/c/test/test_lltyped.py
==============================================================================
--- pypy/branch/kill-keepalives/pypy/translator/c/test/test_lltyped.py	(original)
+++ pypy/branch/kill-keepalives/pypy/translator/c/test/test_lltyped.py	Wed Sep 13 12:26:18 2006
@@ -52,12 +52,11 @@
         assert fn() == 607
 
     def test_recursivearray(self):
-        py.test.skip("not allowed any more")
         A = ForwardReference()
         A.become(FixedSizeArray(Struct("S", ('a', Ptr(A))), 5))
-        TREE = GcStruct("TREE", ("root", A), ("other", A))
+        TREE = Struct("TREE", ("root", A), ("other", A))
+        tree = malloc(TREE, immortal=True)
         def llf():
-            tree = malloc(TREE)
             tree.root[0].a = tree.root
             tree.root[1].a = tree.other
             assert tree.root[0].a[0].a[0].a[0].a[0].a[1].a == tree.other



More information about the Pypy-commit mailing list