def parse_failures(lines):
    result = [lines.pop(0)]
    for failure in group_lines(lines, r"_{2,} (?<!Captured stder call).* _{2,}"):
        result.extend(parse_failure(failure))
    return result
Parse and add special markers to all failures found in the `FAILURES`
dataset/ETHPy150Open okcompute/vim-python-tests-runner/compiler/runners/pytest.py/parse_failures