forked from VimPlug/jedi
Fix a Python 2.7 compatibility issue.
This commit is contained in:
@@ -346,7 +346,7 @@ def test_wrong_indentation():
|
|||||||
|
|
||||||
def test_open_parentheses():
|
def test_open_parentheses():
|
||||||
func = 'def func():\n a'
|
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
|
# As you can see, the isinstance call cannot be seen anymore after
|
||||||
# get_code, because it isn't valid code.
|
# get_code, because it isn't valid code.
|
||||||
assert p.module.get_code() == '\n\n' + func
|
assert p.module.get_code() == '\n\n' + func
|
||||||
|
|||||||
Reference in New Issue
Block a user