[pypy-svn] r40930 - pypy/dist/pypy/jit/codegen/test

pedronis at codespeak.net pedronis at codespeak.net
Wed Mar 21 14:58:01 CET 2007


Author: pedronis
Date: Wed Mar 21 14:57:59 2007
New Revision: 40930

Modified:
   pypy/dist/pypy/jit/codegen/test/rgenop_tests.py
Log:
change the test to not use a 'for', to odd a setup for the llgraph case to catch the StopIteration.



Modified: pypy/dist/pypy/jit/codegen/test/rgenop_tests.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/test/rgenop_tests.py	(original)
+++ pypy/dist/pypy/jit/codegen/test/rgenop_tests.py	Wed Mar 21 14:57:59 2007
@@ -722,7 +722,10 @@
     def __init__(self, RGenOp):
         def writer(base, value):
             i = 0
-            for p in self.places:
+            places = self.places
+            n = len(places)
+            while i < n:
+                p = places[i]
                 RGenOp.write_frame_place(lltype.Signed, base, p, value + i)
                 i += 1
         self.writer = writer



More information about the Pypy-commit mailing list