[pypy-commit] pypy inline-simple-generators: (antocuni, hodgestar) Rename unroll argument in test to make test more understandable.

hodgestar noreply at buildbot.pypy.org
Sun Jul 24 20:18:37 CEST 2011


Author: Simon Cross <hodgestar at gmail.com>
Branch: inline-simple-generators
Changeset: r45949:1c03240c7ac2
Date: 2011-07-24 20:18 +0200
http://bitbucket.org/pypy/pypy/changeset/1c03240c7ac2/

Log:	(antocuni, hodgestar) Rename unroll argument in test to make test
	more understandable.

diff --git a/pypy/jit/metainterp/test/test_ajit.py b/pypy/jit/metainterp/test/test_ajit.py
--- a/pypy/jit/metainterp/test/test_ajit.py
+++ b/pypy/jit/metainterp/test/test_ajit.py
@@ -509,8 +509,8 @@
         self.check_history(call=1)   # because the trace starts immediately
 
     def test_unroll_one_loop_iteration(self):
-        def unroll(x):
-            return x == 0
+        def unroll(code):
+            return code == 0
         myjitdriver = JitDriver(greens = ['code'],
                                 reds = ['loops', 'inner_loops', 's'],
                                 should_unroll_one_iteration=unroll)


More information about the pypy-commit mailing list