[pypy-commit] pypy jit-targets: fix tests

hakanardo noreply at buildbot.pypy.org
Wed Nov 9 21:48:29 CET 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-targets
Changeset: r49065:b2fbfc8c5fef
Date: 2011-11-09 21:19 +0100
http://bitbucket.org/pypy/pypy/changeset/b2fbfc8c5fef/

Log:	fix tests

diff --git a/pypy/jit/metainterp/test/test_string.py b/pypy/jit/metainterp/test/test_string.py
--- a/pypy/jit/metainterp/test/test_string.py
+++ b/pypy/jit/metainterp/test/test_string.py
@@ -499,7 +499,7 @@
             sys.defaultencoding = _str('utf-8')
             return sa
         assert self.meta_interp(f, [8]) == f(8)
-        self.check_resops({'jump': 2, 'int_is_true': 2, 'int_add': 2,
+        self.check_resops({'jump': 1, 'int_is_true': 2, 'int_add': 2,
                            'guard_true': 2, 'guard_not_invalidated': 2,
                            'int_sub': 2})
 
@@ -590,7 +590,7 @@
         # The "".join should be unrolled, since the length of x is known since
         # it is virtual, ensure there are no calls to ll_join_chars, or
         # allocations.
-        self.check_resops({'jump': 2, 'guard_true': 5, 'int_lt': 2,
+        self.check_resops({'jump': 1, 'guard_true': 5, 'int_lt': 2,
                            'int_add': 2, 'int_is_true': 3})
 
     def test_virtual_copystringcontent(self):


More information about the pypy-commit mailing list