forked from VimPlug/jedi
call_signature/completion interference issues
This commit is contained in:
@@ -3,6 +3,7 @@ import inspect
|
|||||||
|
|
||||||
from ..helpers import TestCase
|
from ..helpers import TestCase
|
||||||
from jedi import Script
|
from jedi import Script
|
||||||
|
from jedi import cache
|
||||||
from jedi._compatibility import is_py33
|
from jedi._compatibility import is_py33
|
||||||
|
|
||||||
|
|
||||||
@@ -224,3 +225,15 @@ def test_no_signature():
|
|||||||
X()(""")
|
X()(""")
|
||||||
assert Script(s).call_signatures() == []
|
assert Script(s).call_signatures() == []
|
||||||
assert len(Script(s, column=2).call_signatures()) == 1
|
assert len(Script(s, column=2).call_signatures()) == 1
|
||||||
|
|
||||||
|
|
||||||
|
def test_completion_interference():
|
||||||
|
"""Seems to cause problems, see also #396."""
|
||||||
|
cache.parser_cache.pop(None, None)
|
||||||
|
assert Script('open(').call_signatures()
|
||||||
|
assert Script('open(').call_signatures()
|
||||||
|
|
||||||
|
# complete something usual, before doing the same call_signatures again.
|
||||||
|
assert Script('from os import ').completions()
|
||||||
|
|
||||||
|
assert Script('open(').call_signatures()
|
||||||
|
|||||||
Reference in New Issue
Block a user