diff --git a/test/test_parser/test_fast_parser.py b/test/test_parser/test_fast_parser.py index 10e1deeb..73bc80a9 100644 --- a/test/test_parser/test_fast_parser.py +++ b/test/test_parser/test_fast_parser.py @@ -346,7 +346,7 @@ def test_wrong_indentation(): def test_open_parentheses(): func = 'def func():\n a' - p = FastParser(load_grammar(), 'isinstance(\n\n' + func) + p = FastParser(load_grammar(), u('isinstance(\n\n' + func)) # As you can see, the isinstance call cannot be seen anymore after # get_code, because it isn't valid code. assert p.module.get_code() == '\n\n' + func