Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r48864:5631da22e6ed Date: 2011-11-07 15:31 +0100 http://bitbucket.org/pypy/pypy/changeset/5631da22e6ed/
Log: A skipped failing test for a case in which the optimizer gets confused and doesn't remove guard_no_exception diff --git a/pypy/jit/metainterp/optimizeopt/test/test_optimizeopt.py b/pypy/jit/metainterp/optimizeopt/test/test_optimizeopt.py --- a/pypy/jit/metainterp/optimizeopt/test/test_optimizeopt.py +++ b/pypy/jit/metainterp/optimizeopt/test/test_optimizeopt.py @@ -958,6 +958,24 @@ """ self.optimize_loop(ops, expected, preamble) + def test_bug_guard_no_exception(self): + py.test.skip("missing optimization for this corner case") + ops = """ + [] + i0 = call(123, descr=nonwritedescr) + p0 = call(0, "xy", descr=s2u_descr) # string -> unicode + guard_no_exception() [] + escape(p0) + jump() + """ + expected = """ + [] + i0 = call(123, descr=nonwritedescr) + escape(u"xy") + jump() + """ + self.optimize_loop(ops, expected) + # ---------- def test_call_loopinvariant(self): _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit