Skip to content

Commit

Permalink
Fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaIng committed Jun 20, 2024
1 parent 9d83086 commit bd230b2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
except ImportError:
regex = None

try:
import pytest
except ImportError:
pytest = None

import lark
from lark import logger
Expand Down Expand Up @@ -931,9 +927,6 @@ def __init__(self, lexer_conf):
def lex(self, lexer_state, parser_state):
return self.lexer.lex(lexer_state, parser_state)

def make_lexer_state(self, text):
return self.lexer.make_lexer_state(text)

__future_interface__ = True

class CustomLexerOld(Lexer):
Expand Down Expand Up @@ -1583,7 +1576,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

0 comments on commit bd230b2

Please sign in to comment.