1
0
forked from VimPlug/jedi

Fix a follow_imports (goto) issue.

This commit is contained in:
Dave Halter
2017-09-11 23:32:10 +02:00
parent 619acbd2ca
commit 4a544c29ea
2 changed files with 10 additions and 8 deletions

View File

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