1
0
forked from VimPlug/jedi

Fix sys.path completions, #1298

This commit is contained in:
Dave Halter
2019-03-13 21:11:20 +01:00
parent b659b20d27
commit 92a8a84ff2
2 changed files with 7 additions and 1 deletions

View File

@@ -356,3 +356,9 @@ def test_name_not_findable():
setattr(X, 'NOT_FINDABLE', X.hidden)
assert jedi.Interpreter("X.NOT_FINDA", [locals()]).completions()
def test_sys_path_docstring(): # Was an issue in #1298
import jedi
s = jedi.Interpreter("from sys import path\npath", line=2, column=4, namespaces=[locals()])
s.completions()[0].docstring()