mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-07 12:24:32 +08:00
Fix a follow_imports (goto) issue.
This commit is contained in:
1 parent
619acbd2ca
commit
4a544c29ea
2 files changed
+10
-8
No files matched your search
@@ -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