[pypy-svn] pypy jitypes2: fix the test; probably we number of loops changed after the merging of jit-unroll

antocuni commits-noreply at bitbucket.org
Wed Jan 12 14:43:20 CET 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: jitypes2
Changeset: r40627:9886b625cee3
Date: 2011-01-11 10:51 +0100
http://bitbucket.org/pypy/pypy/changeset/9886b625cee3/

Log:	fix the test; probably we number of loops changed after the merging
	of jit-unroll

diff --git a/pypy/module/pypyjit/test/test_pypy_c.py b/pypy/module/pypyjit/test/test_pypy_c.py
--- a/pypy/module/pypyjit/test/test_pypy_c.py
+++ b/pypy/module/pypyjit/test/test_pypy_c.py
@@ -1337,7 +1337,7 @@
                               76, ([], 8.0*2000), threshold=1000)
         pow_addr = int(out.splitlines()[0])
         ops = self.get_by_bytecode('CALL_FUNCTION')
-        assert len(ops) == 2 # we get two loops, because of specialization
+        assert len(ops) == 1
         call_function = ops[0]
         last_ops = [op.getopname() for op in call_function[-5:]]
         assert last_ops == ['force_token',


More information about the Pypy-commit mailing list