Fix qualified names for CompiledObject

This commit is contained in:
Dave Halter
2019-06-07 01:33:37 +02:00
parent a43a6cbc06
commit 97f342fc4c
7 changed files with 99 additions and 42 deletions

View File

@@ -397,6 +397,9 @@ def test_sys_path_docstring(): # Was an issue in #1298
('counter.setdefa', ['setdefault']),
('counter.pop().imag', []), # TODO stubs could make this better
('counter.keys())[0].uppe', []),
('string.upper().uppe', ['upper']),
('"".upper().uppe', ['upper']),
]
)
def test_simple_completions(code, completions):
@@ -406,6 +409,7 @@ def test_simple_completions(code, completions):
import collections
deq = collections.deque([1])
counter = collections.Counter(['asdf'])
string = ''
defs = jedi.Interpreter(code, [locals()]).completions()
assert [d.name for d in defs] == completions