1
0
forked from VimPlug/jedi

It seems like join completion was wrong before when used within the interpreter.

This commit is contained in:
Dave Halter
2015-11-10 21:25:40 +01:00
parent 7c94cd674a
commit eececf0f74
2 changed files with 3 additions and 3 deletions

View File

@@ -561,7 +561,7 @@ class Interpreter(Script):
>>> from os.path import join
>>> namespace = locals()
>>> script = Interpreter('join().up', [namespace])
>>> script = Interpreter('join("").up', [namespace])
>>> print(script.completions()[0].name)
upper
"""

View File

@@ -17,13 +17,13 @@ class TestInterpreterAPI(TestCase):
def test_complete_raw_function(self):
from os.path import join
self.check_interpreter_complete('join().up',
self.check_interpreter_complete('join("").up',
locals(),
['upper'])
def test_complete_raw_function_different_name(self):
from os.path import join as pjoin
self.check_interpreter_complete('pjoin().up',
self.check_interpreter_complete('pjoin("").up',
locals(),
['upper'])