summaryrefslogtreecommitdiff
path: root/yaksh/code_evaluator.py
diff options
context:
space:
mode:
authorankitjavalkar2016-03-17 16:42:33 +0530
committerankitjavalkar2016-05-05 19:00:33 +0530
commit0520bf284f9b34782fa90b433d714c887049f339 (patch)
treeff1d81f59ea849740bd37ca70a11eaa821187fbc /yaksh/code_evaluator.py
parent195aead9b0fab0d8cdb86a9fc884ac3edca5db84 (diff)
downloadonline_test-0520bf284f9b34782fa90b433d714c887049f339.tar.gz
online_test-0520bf284f9b34782fa90b433d714c887049f339.tar.bz2
online_test-0520bf284f9b34782fa90b433d714c887049f339.zip
- Add test cases for multiple python evaluators
- Change name from python_standard_evaluator to python_assertion_evaluator
Diffstat (limited to 'yaksh/code_evaluator.py')
-rw-r--r--yaksh/code_evaluator.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/yaksh/code_evaluator.py b/yaksh/code_evaluator.py
index 7e2a729..535daa3 100644
--- a/yaksh/code_evaluator.py
+++ b/yaksh/code_evaluator.py
@@ -52,9 +52,7 @@ class CodeEvaluator(object):
"""Tests the code obtained from Code Server"""
# def __init__(self, test_case_data, test, language, user_answer,
# ref_code_path=None, in_dir=None):
- def __init__(self, in_dir, **kwargs):
-
-
+ def __init__(self, in_dir=None):
msg = 'Code took more than %s seconds to run. You probably '\
'have an infinite loop in your code.' % SERVER_TIMEOUT
self.timeout_msg = msg
@@ -64,7 +62,7 @@ class CodeEvaluator(object):
# self.ref_code_path = ref_code_path #@@@specific to check-code
# self.test = test #@@@specific to check-code
self.in_dir = in_dir #@@@Common for all, no change
- self.test_case_args = None #@@@no change
+ # self.test_case_args = None #@@@no change
# Public Protocol ##########
# @classmethod