[pypy-svn] r47207 - pypy/branch/kill-keepalives-again/pypy/rpython/rctypes/test

arigo at codespeak.net arigo at codespeak.net
Fri Oct 5 22:35:58 CEST 2007


Author: arigo
Date: Fri Oct  5 22:35:58 2007
New Revision: 47207

Modified:
   pypy/branch/kill-keepalives-again/pypy/rpython/rctypes/test/test_rarray.py
Log:
Check in a failing test (skipped).  It also fails in the trunk actually,
so I think I'll just forget about it.


Modified: pypy/branch/kill-keepalives-again/pypy/rpython/rctypes/test/test_rarray.py
==============================================================================
--- pypy/branch/kill-keepalives-again/pypy/rpython/rctypes/test/test_rarray.py	(original)
+++ pypy/branch/kill-keepalives-again/pypy/rpython/rctypes/test/test_rarray.py	Fri Oct  5 22:35:58 2007
@@ -344,6 +344,24 @@
         res = interpret(func, [10])
         assert res == 50
 
+    def test_specialize_array_of_struct(self):
+        py.test.skip("known to fail, sorry :-(")
+        class T(Structure):
+            _fields_ = [('x', c_int)]
+        class S(Structure):
+            _fields_ = [('p', POINTER(T))]
+        A = S * 10
+        def func():
+            a = A()
+            for i in range(10):
+                t = T()
+                t.x = i*i
+                a[i].p = pointer(t)
+            for i in range(10):
+                assert a[i].p.contents.x == i*i
+        func()
+        interpret(func, [])
+
 class Test_compilation:
     def setup_class(self):
         if not test_c_compile:



More information about the Pypy-commit mailing list