Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r88485:baf04e3cc2f7 Date: 2016-11-19 21:17 +0100 http://bitbucket.org/pypy/pypy/changeset/baf04e3cc2f7/
Log: Reapply fix c6f52c21fe7e diff --git a/_pytest/_code/source.py b/_pytest/_code/source.py --- a/_pytest/_code/source.py +++ b/_pytest/_code/source.py @@ -416,6 +416,8 @@ trysource = source[start:end] if trysource.isparseable(): return start, end + if end == start + 100: # XXX otherwise, it takes forever + break # XXX raise SyntaxError("no valid source range around line %d " % (lineno,)) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit