[pypy-svn] r70041 - in pypy/branch/listcopyop/pypy: rpython/memory/test translator/c/test

arigo at codespeak.net arigo at codespeak.net
Thu Dec 10 16:22:58 CET 2009


Author: arigo
Date: Thu Dec 10 16:22:58 2009
New Revision: 70041

Modified:
   pypy/branch/listcopyop/pypy/rpython/memory/test/test_transformed_gc.py
   pypy/branch/listcopyop/pypy/translator/c/test/test_newgc.py
Log:
Apply r69992 here too.


Modified: pypy/branch/listcopyop/pypy/rpython/memory/test/test_transformed_gc.py
==============================================================================
--- pypy/branch/listcopyop/pypy/rpython/memory/test/test_transformed_gc.py	(original)
+++ pypy/branch/listcopyop/pypy/rpython/memory/test/test_transformed_gc.py	Thu Dec 10 16:22:58 2009
@@ -847,9 +847,6 @@
         #     (and give fixedsize)
 
     def define_arraycopy(cls):
-        import new
-        ll_arraycopy = new.function(rgc.ll_arraycopy.func_code, {})
-        
         S = lltype.GcStruct('S')
         TP = lltype.GcArray(lltype.Ptr(S))
         def fn():
@@ -857,7 +854,7 @@
             l2 = lltype.malloc(TP, 100)
             for i in range(100):
                 l[i] = lltype.malloc(S)
-            ll_arraycopy(l, l2, 50, 0, 50)
+            rgc.ll_arraycopy(l, l2, 50, 0, 50)
             # force nursery collect
             x = []
             for i in range(20):

Modified: pypy/branch/listcopyop/pypy/translator/c/test/test_newgc.py
==============================================================================
--- pypy/branch/listcopyop/pypy/translator/c/test/test_newgc.py	(original)
+++ pypy/branch/listcopyop/pypy/translator/c/test/test_newgc.py	Thu Dec 10 16:22:58 2009
@@ -837,9 +837,6 @@
 
 
     def define_arraycopy_writebarrier(cls):
-        import new
-        ll_arraycopy = new.function(rgc.ll_arraycopy.func_code, {})
-        
         TP = lltype.GcArray(lltype.Signed)
         S = lltype.GcStruct('S')
         def fn():
@@ -847,7 +844,7 @@
             for i in range(100):
                 l[i] = 1
             l2 = lltype.malloc(TP, 50)
-            ll_arraycopy(l, l2, 50, 0, 50)
+            rgc.ll_arraycopy(l, l2, 50, 0, 50)
             # force a nursery collect
             x = []
             for i in range(20):



More information about the Pypy-commit mailing list