[pypy-commit] pypy default: This loop was infinite if it reaches '--end--'
arigo
noreply at buildbot.pypy.org
Fri May 15 08:54:07 CEST 2015
Author: Armin Rigo <arigo at 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 = []
More information about the pypy-commit
mailing list