[pypy-svn] r78615 - pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test

hakanardo at codespeak.net hakanardo at codespeak.net
Sun Oct 31 15:20:44 CET 2010


Author: hakanardo
Date: Sun Oct 31 15:20:42 2010
New Revision: 78615

Modified:
   pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test/test_send.py
Log:
fixed test

Modified: pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test/test_send.py
==============================================================================
--- pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test/test_send.py	(original)
+++ pypy/branch/jit-unroll-loops/pypy/jit/metainterp/test/test_send.py	Sun Oct 31 15:20:42 2010
@@ -353,7 +353,10 @@
         assert res == f(198)
         # we get two TreeLoops: an initial one, and one entering from
         # the interpreter
-        self.check_tree_loop_count(2)
+        if self.optimizer == OPTIMIZER_SIMPLE:
+            self.check_tree_loop_count(1)
+        else:
+            self.check_tree_loop_count(2)
 
     def test_two_behaviors(self):
         py.test.skip("XXX fix me!!!!!!! problem in optimize.py")



More information about the Pypy-commit mailing list