mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-08 04:00:56 +08:00
execute_evaluated -> execute_with_values
This commit is contained in:
@@ -14,7 +14,7 @@ from jedi.evaluate.gradual.conversion import _stub_to_python_context_set
|
||||
def test_simple(evaluator, environment):
|
||||
obj = compiled.create_simple_object(evaluator, u'_str_')
|
||||
upper, = obj.py__getattribute__(u'upper')
|
||||
objs = list(upper.execute_evaluated())
|
||||
objs = list(upper.execute_with_values())
|
||||
assert len(objs) == 1
|
||||
if environment.version_info.major == 2:
|
||||
expected = 'unicode'
|
||||
|
||||
@@ -20,8 +20,8 @@ def test_function_execution(Script):
|
||||
# Now just use the internals of the result (easiest way to get a fully
|
||||
# usable function).
|
||||
# Should return the same result both times.
|
||||
assert len(func.execute_evaluated()) == 1
|
||||
assert len(func.execute_evaluated()) == 1
|
||||
assert len(func.execute_with_values()) == 1
|
||||
assert len(func.execute_with_values()) == 1
|
||||
|
||||
|
||||
def test_class_mro(Script):
|
||||
|
||||
Reference in New Issue
Block a user