Author: Hakan Ardo <ha...@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): _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit