1
0
forked from VimPlug/jedi

Fix a Python 2.7 compatibility issue.

This commit is contained in:
Dave Halter
2015-03-06 00:37:41 +01:00
parent 468ff59c1c
commit a0f8b58e71

View File

@@ -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