From cf4f207f710b9f67e0973a99f5894c4a866bca4c Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Mon, 9 Jan 2017 12:48:37 +0530 Subject: modified tests and hook evaluator for python 3 --- yaksh/hook_evaluator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yaksh/hook_evaluator.py') diff --git a/yaksh/hook_evaluator.py b/yaksh/hook_evaluator.py index 6c8b2c3..c125b21 100644 --- a/yaksh/hook_evaluator.py +++ b/yaksh/hook_evaluator.py @@ -53,7 +53,7 @@ class HookEvaluator(BaseEvaluator): try: tb = None _tests = compile(self.hook_code, '', mode='exec') - exec(_tests, locals()) + exec(_tests, globals()) success, err, mark_fraction = check_answer(self.user_answer) except TimeoutException: raise -- cgit