diff options
author | ankitjavalkar | 2016-03-17 16:42:33 +0530 |
---|---|---|
committer | ankitjavalkar | 2016-05-05 19:00:33 +0530 |
commit | 0520bf284f9b34782fa90b433d714c887049f339 (patch) | |
tree | ff1d81f59ea849740bd37ca70a11eaa821187fbc /yaksh/code_evaluator.py | |
parent | 195aead9b0fab0d8cdb86a9fc884ac3edca5db84 (diff) | |
download | online_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.py | 6 |
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 |