Fix some test imports

This commit is contained in:
Dave Halter
2019-06-10 19:48:46 +02:00
parent 5ef0563abe
commit 1b0677ec55
3 changed files with 6 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ import pytest
from jedi.evaluate import compiled
from jedi.evaluate.compiled.access import DirectObjectAccess
from jedi.evaluate.helpers import execute_evaluated
from jedi.evaluate.gradual.conversion import stub_to_python_context_set
from jedi.evaluate.gradual.conversion import _stub_to_python_context_set
def test_simple(evaluator, environment):
@@ -35,7 +35,7 @@ def test_next_docstr(evaluator):
next_ = compiled.builtin_from_name(evaluator, u'next')
assert next_.tree_node is not None
assert next_.py__doc__() == '' # It's a stub
for non_stub in stub_to_python_context_set(next_):
for non_stub in _stub_to_python_context_set(next_):
assert non_stub.py__doc__() == next.__doc__

View File

@@ -12,7 +12,7 @@ from jedi._compatibility import find_module_py33, find_module
from jedi.evaluate import compiled
from jedi.evaluate import imports
from jedi.api.project import Project
from jedi.evaluate.gradual.conversion import stub_to_python_context_set
from jedi.evaluate.gradual.conversion import _stub_to_python_context_set
from ..helpers import cwd_at, get_example_dir, test_dir, root_dir
THIS_DIR = os.path.dirname(__file__)
@@ -301,7 +301,7 @@ def test_compiled_import_none(monkeypatch, Script):
def_, = script.goto_definitions()
assert def_.type == 'module'
context, = def_._name.infer()
assert not stub_to_python_context_set(context)
assert not _stub_to_python_context_set(context)
@pytest.mark.parametrize(

View File

@@ -1,7 +1,7 @@
import pytest
from operator import ge, lt
from jedi.evaluate.gradual.conversion import stub_to_python_context_set
from jedi.evaluate.gradual.conversion import _stub_to_python_context_set
@pytest.mark.parametrize(
@@ -28,7 +28,7 @@ def test_compiled_signature(Script, environment, code, sig, names, op, version):
d, = Script(code).goto_definitions()
context, = d._name.infer()
compiled, = stub_to_python_context_set(context)
compiled, = _stub_to_python_context_set(context)
signature, = compiled.get_signatures()
assert signature.to_string() == sig
assert [n.string_name for n in signature.get_param_names()] == names