From ed04b22c4c4aad2b5adb2a6dfecf9df3b5bbc93f Mon Sep 17 00:00:00 2001 From: Kaspar Emanuel Date: Sun, 15 Oct 2017 18:52:51 +0100 Subject: [PATCH] Fix UTF-8 test --- tests/test_parser.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_parser.py b/tests/test_parser.py index d29aa47..37729e1 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -55,17 +55,17 @@ class TestParsers(unittest.TestCase): self.assertRaises(ParseError, l.parse, 'a') def test_utf8(self): - g = """start: a + g = u"""start: a a: "±a" """ l = Lark(g) - l.parse('±a') + l.parse(u'±a') l = Lark(g, parser='earley', lexer=None) - l.parse('±a') + l.parse(u'±a') l = Lark(g, parser='earley', lexer='dynamic') - l.parse('±a') + l.parse(u'±a') def _make_full_earley_test(LEXER):