summaryrefslogtreecommitdiff
path: root/yaksh/hook_evaluator.py
diff options
context:
space:
mode:
authormaheshgudi2017-01-06 14:43:06 +0530
committermaheshgudi2017-01-09 18:10:30 +0530
commit6b8f8f53d7110e27bc44f0d50b8b3155155932f6 (patch)
treea40ab519998f1b68c11da2d6964889e9f2485019 /yaksh/hook_evaluator.py
parentec5cb67b3314d05675c501cd78ce92d02ae8fde4 (diff)
downloadonline_test-6b8f8f53d7110e27bc44f0d50b8b3155155932f6.tar.gz
online_test-6b8f8f53d7110e27bc44f0d50b8b3155155932f6.tar.bz2
online_test-6b8f8f53d7110e27bc44f0d50b8b3155155932f6.zip
added hook evaluator type tuple in forms and fixed limit=0 mistake in grader
Diffstat (limited to 'yaksh/hook_evaluator.py')
-rw-r--r--yaksh/hook_evaluator.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/yaksh/hook_evaluator.py b/yaksh/hook_evaluator.py
index 0ccdd5e..6c8b2c3 100644
--- a/yaksh/hook_evaluator.py
+++ b/yaksh/hook_evaluator.py
@@ -3,8 +3,6 @@ from __future__ import unicode_literals
import sys
import traceback
import os
-from os.path import join
-import importlib
# Local imports
from .file_utils import copy_files, delete_files
@@ -14,7 +12,6 @@ from .grader import TimeoutException
class HookEvaluator(BaseEvaluator):
def __init__(self, metadata, test_case_data):
- self.exec_scope = None
self.files = []
# Set metadata values
@@ -62,7 +59,7 @@ class HookEvaluator(BaseEvaluator):
raise
except Exception:
msg = traceback.format_exc(limit=0)
- err = "Error in Test case: {0}".format(msg)
+ err = "Error in Hook code: {0}".format(msg)
del tb
return success, err, mark_fraction
\ No newline at end of file