Commit 5984ea7f authored by Denis Bilenko's avatar Denis Bilenko

testrunner.py: when parsing output only parse first 15k

parent 0c986bcb
......@@ -359,7 +359,10 @@ def get_warnings(output):
>>> get_warnings('hello DeprecationWarning warning: bla DeprecationWarning')
['DeprecationWarning', 'warning', 'DeprecationWarning']
"""
return _warning_re.findall(output)
if len(output) <= OUTPUT_LIMIT:
return _warning_re.findall(output)
else:
return _warning_re.findall(output[:OUTPUT_LIMIT]) + ['AbridgedOutputWarning']
def get_exceptions(output):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment