Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r77327:eecd8bb77c00 Date: 2015-05-15 08:51 +0200 http://bitbucket.org/pypy/pypy/changeset/eecd8bb77c00/
Log: This loop was infinite if it reaches '--end--' diff --git a/pypy/module/pypyjit/test_pypy_c/model.py b/pypy/module/pypyjit/test_pypy_c/model.py --- a/pypy/module/pypyjit/test_pypy_c/model.py +++ b/pypy/module/pypyjit/test_pypy_c/model.py @@ -450,6 +450,9 @@ if self.try_match(op, until_op): # it matched! The '...' operator ends here return op + self._assert(op != '--end--', + 'nothing in the end of the loop matches %r' % + (until_op,)) def match_any_order(self, iter_exp_ops, iter_ops, ignore_ops): exp_ops = [] _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit