From a0f8b58e718a3eee3641a2cd936af2e97a7db118 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 6 Mar 2015 00:37:41 +0100 Subject: [PATCH] Fix a Python 2.7 compatibility issue. --- test/test_parser/test_fast_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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