Closed pytestbot closed 9 years ago
Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42):
fix issue208 and fix issue29 - avoid long pauses in traceback printing by using the new getstatementrange() code of the py lib which uses AST-parsing rather than the previous heuristic which had O(n^2) complexity (with n = len(sourcelines))
Originally reported by: Maciej Fijalkowski (BitBucket: fijal, GitHub: fijal)
Steps to reproduce:
see it take forever
this is the patch I'm using right now:
http://paste.pound-python.org/show/27012/
which somehow mitigates the issue (it still takes a long time, but not forever). an alternative would be to use _ast module to inspect where the statement starts and ends