Author: Maciej Fijalkowski <fij...@gmail.com>
Branch: 
Changeset: r62942:82d673cea68a
Date: 2013-04-03 08:46 +0200
http://bitbucket.org/pypy/pypy/changeset/82d673cea68a/

Log:    if we're a bit unlucky, the bridge is the main path, so we end up
        with a bridge-on-bridge instead. just relax this check

diff --git a/pypy/module/pypyjit/test_pypy_c/test_jitlogparser.py 
b/pypy/module/pypyjit/test_pypy_c/test_jitlogparser.py
--- a/pypy/module/pypyjit/test_pypy_c/test_jitlogparser.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_jitlogparser.py
@@ -68,7 +68,7 @@
                 bridge = bridges.get(mangle_descr(op.descr))
                 if bridge is not None:
                     mod_bridges.append(bridge)
-        assert len(mod_bridges) == 2
+        assert len(mod_bridges) in (1, 2)
         
         # check that counts are reasonable (precise # may change in the future)
         assert N - 2000 < sum(l.count for l in fn_with_bridges_loops) < N
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to