Finally get rid of call_of_leaf

This commit is contained in:
Dave Halter
2020-01-12 03:04:09 +01:00
parent a17d4d9e16
commit bd2ed8dbbd
4 changed files with 34 additions and 66 deletions

View File

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