From 83e896b3b8829961385db8ffe85a8c67147fe71e Mon Sep 17 00:00:00 2001 From: MegaIng1 Date: Mon, 23 Nov 2020 23:41:43 +0100 Subject: [PATCH] Prevent test from running with old custom lexer --- tests/test_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_parser.py b/tests/test_parser.py index d090b56..d8f1e48 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -2361,7 +2361,7 @@ def _make_parser_test(LEXER, PARSER): self.assertEqual(a.line, 1) self.assertEqual(b.line, 2) - @unittest.skipIf(PARSER=='cyk', "match_examples() not supported for CYK") + @unittest.skipIf(PARSER=='cyk' or LEXER=='custom_old', "match_examples() not supported for CYK/old custom lexer") def test_match_examples(self): p = _Lark(r""" start: "a" "b" "c"