Author: Armin Rigo <ar...@tunes.org>
Branch: py3.5
Changeset: r89587:08640fb67b4d
Date: 2017-01-15 18:00 +0100
http://bitbucket.org/pypy/pypy/changeset/08640fb67b4d/

Log:    fix test

diff --git a/pypy/module/pypyjit/test_pypy_c/test_string.py 
b/pypy/module/pypyjit/test_pypy_c/test_string.py
--- a/pypy/module/pypyjit/test_pypy_c/test_string.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_string.py
@@ -255,7 +255,7 @@
         log = self.run("""
         def main(n):
             for i in range(n):
-                unicode(str(i))
+                (b"x" * (i & 15)).decode('ascii')
             return i
         """, [1000])
         loop, = log.loops_by_filename(self.filepath)
@@ -263,11 +263,13 @@
         i49 = int_lt(i47, i24)
         guard_true(i49, descr=...)
         i50 = int_add(i47, 1)
-        setfield_gc(p15, i50, descr=<FieldS 
pypy.module.__builtin__.functional.W_XRangeIterator.inst_current 8>)
+        i53 = int_and(i47, 15)
+        setfield_gc(p15, i50, descr=<FieldS 
pypy.module.__builtin__.functional.W_IntRangeIterator.inst_current 8>)
+        i55 = int_le(i53, 0)
+        guard_false(i55, descr=...)
+        p80 = call_r(ConstClass(ll_char_mul__Char_Signed), 120, i53, 
descr=<Callr . ii EF=3>)
+        guard_no_exception(descr=...)
         guard_not_invalidated(descr=...)
-        p80 = call_r(ConstClass(ll_str__IntegerR_SignedConst_Signed), i47, 
descr=<Callr . i EF=3>)
-        guard_no_exception(descr=...)
-        guard_nonnull(p80, descr=...)
         p53 = call_r(ConstClass(fast_str_decode_ascii), p80, descr=<Callr . r 
EF=4>)
         guard_no_exception(descr=...)
         guard_nonnull(p53, descr=...)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to