Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaIng committed Jun 20, 2024
1 parent 41d1dd5 commit 5a89293
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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)+
Expand Down
2 changes: 0 additions & 2 deletions tests/test_scan.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

import unittest

from lark import Lark, Tree
Expand Down

0 comments on commit 5a89293

Please sign in to comment.