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

cfbolz at codespeak.net cfbolz at codespeak.net
Fri Apr 21 16:29:32 CEST 2006


Author: cfbolz
Date: Fri Apr 21 16:29:31 2006
New Revision: 26104

Modified:
   pypy/dist/pypy/rpython/memory/test/test_gctransform.py
Log:
the manual inlining of RPyExceptionOccured broke those two brittle test


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	Fri Apr 21 16:29:31 2006
@@ -293,7 +293,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', [])) == 1
+        assert len(ops.get('getfield', [])) == 2
 
 def DONOTtest_protect_unprotect_no_exception_block():
     def p():    protect('this is an object')
@@ -396,7 +396,7 @@
     t, transformer = rtype_and_transform(f, [], gctransform.RefcountingGCTransformer, check=False)
     graph = graphof(t, f)
     ops = getops(graph)
-    assert len(ops['getfield']) == 2
+    assert len(ops['getfield']) == 5
     assert len(ops['setfield']) == 4
 
 def test_arraybarrier():



More information about the Pypy-commit mailing list