Fix a few things that were broken by the mixed object refactoring.

This commit is contained in:
Dave Halter
2016-12-16 17:29:37 +01:00
parent 9ac301d0c3
commit 5fb5580259
3 changed files with 6 additions and 3 deletions

View File

@@ -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: