Author: Alex Gaynor <[email protected]>
Branch: 
Changeset: r63220:948f362bd750
Date: 2013-04-11 04:12 +0200
http://bitbucket.org/pypy/pypy/changeset/948f362bd750/

Log:    Make test correctly match what we expect

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
@@ -244,8 +244,16 @@
 
         def main(n):
             for i in xrange(n):
-                codecs.lookup('utf8')  # ID: codecs
+                codecs.lookup('utf8')
             return i
         """, [1000])
         loop, = log.loops_by_filename(self.filepath)
-        loop.match_by_id('codecs', '')
+        loop.match("""
+        i45 = int_lt(i43, i26)
+        guard_true(i45, descr=...)
+        i46 = int_add(i43, 1)
+        setfield_gc(p15, i46, descr=<FieldS 
pypy.module.__builtin__.functional.W_XRangeIterator.inst_current 8>)
+        guard_not_invalidated(descr=...)
+        --TICK--
+        jump(..., descr=...)
+        """)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to