Make sure goto_assignments is no longer used on Definition

This commit is contained in:
Dave Halter
2019-12-20 14:43:20 +01:00
parent 1f4be4bc51
commit 39605bfa08
6 changed files with 24 additions and 24 deletions

View File

@@ -216,7 +216,7 @@ def test_goto_assignments_follow_imports(Script):
definition, = script.goto_assignments(follow_imports=True)
assert (definition.line, definition.column) == start_pos
assert definition.name == 'p'
result, = definition.goto_assignments()
result, = definition.goto()
assert result.name == 'p'
result, = definition.infer()
assert result.name == 'int'