[pypy-svn] r32169 - pypy/dist/pypy/rpython/memory/test

pedronis at codespeak.net pedronis at codespeak.net
Mon Sep 11 17:39:56 CEST 2006


Author: pedronis
Date: Mon Sep 11 17:39:55 2006
New Revision: 32169

Modified:
   pypy/dist/pypy/rpython/memory/test/test_gctransform.py
Log:
update the fragile counters to the values for the new style of malloc 
failure checking used by the exception transform.



Modified: pypy/dist/pypy/rpython/memory/test/test_gctransform.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/test/test_gctransform.py	(original)
+++ pypy/dist/pypy/rpython/memory/test/test_gctransform.py	Mon Sep 11 17:39:55 2006
@@ -307,7 +307,7 @@
     for gc in rgc, bgc:
         t, transformer = rtype_and_transform(f, [object], gc, check=False)
         ops = getops(graphof(t, f))
-        assert len(ops.get('getfield', [])) == 2
+        assert len(ops.get('getfield', [])) == 1
 
 def DONOTtest_protect_unprotect_no_exception_block():
     def p():    protect('this is an object')
@@ -410,7 +410,7 @@
     t, transformer = rtype_and_transform(f, [], gctransform.RefcountingGCTransformer, check=False)
     graph = graphof(t, f)
     ops = getops(graph)
-    assert len(ops['getfield']) == 5
+    assert len(ops['getfield']) == 2
     assert len(ops['setfield']) == 4
 
 def test_arraybarrier():



More information about the Pypy-commit mailing list