[pypy-svn] r34540 - pypy/dist/pypy/rlib/test

pedronis at codespeak.net pedronis at codespeak.net
Sun Nov 12 22:58:13 CET 2006


Author: pedronis
Date: Sun Nov 12 22:58:12 2006
New Revision: 34540

Modified:
   pypy/dist/pypy/rlib/test/test_rctypesobject.py
Log:
this now passes. I took me a bit to understand what exactly is going on here: this depends on explcit keepalive
in very delicate ways, which means even if we move away from automatic keepalive, things like malloc removal
will indeed still need to be very careful and insert/preserve keepalives.



Modified: pypy/dist/pypy/rlib/test/test_rctypesobject.py
==============================================================================
--- pypy/dist/pypy/rlib/test/test_rctypesobject.py	(original)
+++ pypy/dist/pypy/rlib/test/test_rctypesobject.py	Sun Nov 12 22:58:12 2006
@@ -119,7 +119,7 @@
         assert res == 26
 
     def test_char_p_in_struct(self):
-        py.test.skip("keepalive problem in malloc removal?")
+        #py.test.skip("keepalive problem in malloc removal?")
         S2 = RStruct('S2', [('p', rc_char_p)])
         def func():
             s = S2.allocate()



More information about the Pypy-commit mailing list