Author: Carl Friedrich Bolz <cfb...@gmx.de> Branch: small-unroll-improvements Changeset: r70435:282c41e394ed Date: 2014-04-04 13:10 +0200 http://bitbucket.org/pypy/pypy/changeset/282c41e394ed/
Log: this test is brittle, it fails when run with all others but passes in isolation. this is fixed by using constant ints diff --git a/rpython/jit/metainterp/optimizeopt/test/test_virtualstate.py b/rpython/jit/metainterp/optimizeopt/test/test_virtualstate.py --- a/rpython/jit/metainterp/optimizeopt/test/test_virtualstate.py +++ b/rpython/jit/metainterp/optimizeopt/test/test_virtualstate.py @@ -627,26 +627,26 @@ def test_constant(self): loops = """ - [p0] - p1 = same_as(ConstPtr(myptr)) - jump(p1) + [i0] + i1 = same_as(1) + jump(i1) """, """ - [p0] - p1 = same_as(ConstPtr(myptr2)) - jump(p1) + [i0] + i1 = same_as(2) + jump(i1) """, """ - [p0] - jump(p0) + [i0] + jump(i0) """ expected = """ - [p0] + [i0] jump() """ self.optimize_bridge(loops, loops[0], expected, 'Loop0') self.optimize_bridge(loops, loops[1], expected, 'Loop1') expected = """ - [p0] - jump(p0) + [i0] + jump(i0) """ self.optimize_bridge(loops, loops[2], expected, 'Loop2') _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit