1
0
forked from VimPlug/jedi

Make sure that jedi.names is not references anymore

This commit is contained in:
Dave Halter
2019-12-20 18:04:47 +01:00
parent f90aeceb27
commit dbb61357c3
8 changed files with 16 additions and 17 deletions

View File

@@ -1,15 +1,14 @@
from textwrap import dedent
from jedi import names
from jedi.inference import helpers
def test_call_of_leaf_in_brackets(environment):
def test_call_of_leaf_in_brackets(Script):
s = dedent("""
x = 1
type(x)
""")
last_x = names(s, references=True, definitions=False, environment=environment)[-1]
last_x = Script(s).names(references=True, definitions=False)[-1]
name = last_x._name.tree_name
call = helpers.call_of_leaf(name)