forked from VimPlug/jedi
CompiledObject -> CompiledValue
This commit is contained in:
@@ -50,7 +50,7 @@ def test_parse_function_doc_illegal_docstr():
|
||||
|
||||
def test_doc(inference_state):
|
||||
"""
|
||||
Even CompiledObject docs always return empty docstrings - not None, that's
|
||||
Even CompiledValue docs always return empty docstrings - not None, that's
|
||||
just a Jedi API definition.
|
||||
"""
|
||||
str_ = compiled.create_simple_object(inference_state, u'')
|
||||
@@ -135,7 +135,7 @@ def test_parent_context(same_process_inference_state, attribute, expected_name,
|
||||
dt = datetime(2000, 1, 1)
|
||||
ret_int = _return_int
|
||||
|
||||
o = compiled.CompiledObject(
|
||||
o = compiled.CompiledValue(
|
||||
same_process_inference_state,
|
||||
DirectObjectAccess(same_process_inference_state, C)
|
||||
)
|
||||
@@ -165,7 +165,7 @@ def test_parent_context(same_process_inference_state, attribute, expected_name,
|
||||
]
|
||||
)
|
||||
def test_qualified_names(same_process_inference_state, obj, expected_names):
|
||||
o = compiled.CompiledObject(
|
||||
o = compiled.CompiledValue(
|
||||
same_process_inference_state,
|
||||
DirectObjectAccess(same_process_inference_state, obj)
|
||||
)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from jedi.inference.compiled import CompiledObject
|
||||
from jedi.inference.compiled import CompiledValue
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -15,4 +15,4 @@ def test_equals(Script, environment, source):
|
||||
script = Script(source)
|
||||
node = script._module_node.children[0]
|
||||
first, = script._get_module_context().infer_node(node)
|
||||
assert isinstance(first, CompiledObject) and first.get_safe_value() is True
|
||||
assert isinstance(first, CompiledValue) and first.get_safe_value() is True
|
||||
|
||||
Reference in New Issue
Block a user