summaryrefslogtreecommitdiff
path: root/yaksh/hook_evaluator.py
diff options
context:
space:
mode:
authormaheshgudi2017-01-09 12:48:37 +0530
committermaheshgudi2017-01-09 18:10:30 +0530
commitcf4f207f710b9f67e0973a99f5894c4a866bca4c (patch)
tree8426a0d1611a406e2fbbf3cc5d8e4a1ae91bcb10 /yaksh/hook_evaluator.py
parent6b8f8f53d7110e27bc44f0d50b8b3155155932f6 (diff)
downloadonline_test-cf4f207f710b9f67e0973a99f5894c4a866bca4c.tar.gz
online_test-cf4f207f710b9f67e0973a99f5894c4a866bca4c.tar.bz2
online_test-cf4f207f710b9f67e0973a99f5894c4a866bca4c.zip
modified tests and hook evaluator for python 3
Diffstat (limited to 'yaksh/hook_evaluator.py')
-rw-r--r--yaksh/hook_evaluator.py2
1 files changed, 1 insertions, 1 deletions
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, '<string>', mode='exec')
- exec(_tests, locals())
+ exec(_tests, globals())
success, err, mark_fraction = check_answer(self.user_answer)
except TimeoutException:
raise