def test_parser_resilience():
    parser = ParserPython(('findme', EOF))
    with pytest.raises(TypeError):
        parser.parse(map)
    assert parser.parse('  findme  ') is not None
Tests that arpeggio parsers recover successfully from failure.
dataset/ETHPy150Open igordejanovic/Arpeggio/tests/unit/test_parser_resilience.py/test_parser_resilience