forked from VimPlug/jedi
Get the subprocess mostly working
This commit is contained in:
@@ -6,7 +6,7 @@ from jedi._compatibility import py_version, unicode
|
||||
|
||||
def _eval_literal(code):
|
||||
def_, = jedi.Script(code).goto_definitions()
|
||||
return def_._name._context.access_handle.access._obj
|
||||
return def_._name._context.get_safe_value()
|
||||
|
||||
|
||||
@pytest.mark.skipif('sys.version_info[:2] < (3, 6)')
|
||||
|
||||
@@ -14,4 +14,4 @@ def test_equals(source):
|
||||
script = Script(source)
|
||||
node = script._get_module_node().children[0]
|
||||
first, = script._get_module().eval_node(node)
|
||||
assert isinstance(first, CompiledObject) and first.access_handle.access._obj is True
|
||||
assert isinstance(first, CompiledObject) and first.get_safe_value() is True
|
||||
|
||||
Reference in New Issue
Block a user