From 5a892936ae7cdc6a7f3236008d85a8309647ce00 Mon Sep 17 00:00:00 2001 From: MegaIng Date: Thu, 20 Jun 2024 03:19:43 +0200 Subject: [PATCH] Small fixes --- tests/test_parser.py | 4 ++-- tests/test_scan.py | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_parser.py b/tests/test_parser.py index dd5d5021..82c1ddfd 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -1584,7 +1584,6 @@ def test_token_flags_collision(self): g = """!start: "a"i "a" """ l = _Lark(g) - print(l.terminals) self.assertEqual(l.parse('aa').children, ['a', 'a']) self.assertEqual(l.parse('Aa').children, ['A', 'a']) self.assertRaises(UnexpectedInput, l.parse, 'aA') @@ -2593,7 +2592,8 @@ def test_strict(self): """ self.assertRaises(GrammarError, _Lark, grammar, strict=True) - @unittest.skipIf(LEXER in ('dynamic', 'custom_old'), "start_pos and end_pos not compatible with old style custom/dynamic lexer ") + @unittest.skipIf(LEXER in ('dynamic', 'dynamic_complete', 'custom_old'), + "start_pos and end_pos not compatible with old style custom/dynamic lexer ") def test_subset_parse(self): grammar = r""" start: (WORD|FRAG_END|FRAG_START)+ diff --git a/tests/test_scan.py b/tests/test_scan.py index ecb224f3..830c1d1f 100644 --- a/tests/test_scan.py +++ b/tests/test_scan.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import unittest from lark import Lark, Tree