mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 07:14:48 +08:00
Fix a few things that were broken by the mixed object refactoring.
This commit is contained in:
@@ -193,6 +193,8 @@ class IntegrationTestCase(object):
|
||||
module_context = script._get_module()
|
||||
# The context shouldn't matter for the test results.
|
||||
user_context = get_user_scope(module_context, (self.line_nr, 0))
|
||||
if user_context.api_type == 'function':
|
||||
user_context = user_context.get_function_execution()
|
||||
element.parent = user_context.get_node()
|
||||
results = evaluator.eval_element(user_context, element)
|
||||
if not results:
|
||||
|
||||
Reference in New Issue
Block a user