forked from VimPlug/jedi
Fix a follow_imports (goto) issue.
This commit is contained in:
@@ -207,6 +207,9 @@ def test_goto_assignments_follow_imports():
|
||||
definition, = script.goto_assignments()
|
||||
assert (definition.line, definition.column) == start_pos
|
||||
|
||||
d, = api.Script('a = 1\na').goto_assignments(follow_imports=True)
|
||||
assert d.name == 'a'
|
||||
|
||||
|
||||
def test_goto_module():
|
||||
def check(line, expected):
|
||||
|
||||
Reference in New Issue
Block a user