1
0
forked from VimPlug/jedi

Fix issues with the current branch

This commit is contained in:
Dave Halter
2018-08-09 23:25:29 +02:00
parent 62842c8ac1
commit b3a07941bb
3 changed files with 7 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
from textwrap import dedent
from jedi.evaluate.helpers import execute_evaluated
def get_definition_and_evaluator(Script, source):
first, = Script(dedent(source)).goto_definitions()
@@ -20,8 +22,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(execute_evaluated(func)) == 1
assert len(execute_evaluated(func)) == 1
def test_class_mro(Script):