[pypy-svn] r53078 - pypy/branch/jit-hotpath/pypy/jit/rainbow/test

antocuni at codespeak.net antocuni at codespeak.net
Sat Mar 29 11:01:16 CET 2008


Author: antocuni
Date: Sat Mar 29 11:01:14 2008
New Revision: 53078

Modified:
   pypy/branch/jit-hotpath/pypy/jit/rainbow/test/test_interpreter.py
Log:
test_debug_assert_ptrnonzero passes out of the box



Modified: pypy/branch/jit-hotpath/pypy/jit/rainbow/test/test_interpreter.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/jit/rainbow/test/test_interpreter.py	(original)
+++ pypy/branch/jit-hotpath/pypy/jit/rainbow/test/test_interpreter.py	Sat Mar 29 11:01:14 2008
@@ -1429,9 +1429,10 @@
         self.check_insns(int_mul=1, int_add=0)
 
     def test_debug_assert_ptr_nonzero(self):
-        S = lltype.GcStruct('s', ('x', lltype.Signed))
+        S = self.GcStruct('s', ('x', lltype.Signed))
+        malloc = self.malloc
         def h():
-            s = lltype.malloc(S)
+            s = malloc(S)
             s.x = 42
             return s
         def g(s):
@@ -2051,7 +2052,6 @@
     test_normalize_indirect_call_more = _skip
     test_green_char_at_merge = _skip
     test_self_referential_structures = _skip
-    test_debug_assert_ptr_nonzero = _skip
     test_indirect_red_call = _skip
     test_indirect_red_call_with_exc = _skip
     test_indirect_gray_call = _skip



More information about the Pypy-commit mailing list