summaryrefslogtreecommitdiff
path: root/yaksh/python_stdio_evaluator.py
diff options
context:
space:
mode:
authorankitjavalkar2016-12-19 19:18:35 +0530
committerankitjavalkar2016-12-20 12:46:04 +0530
commit4a0f94084bc26559ef3e26470619e87314f9d70e (patch)
treec94e56cbb84a90fe12f910bb83a36583219892ee /yaksh/python_stdio_evaluator.py
parent81d373983806b78d651e17b966bae0a8ccf3c4bb (diff)
downloadonline_test-4a0f94084bc26559ef3e26470619e87314f9d70e.tar.gz
online_test-4a0f94084bc26559ef3e26470619e87314f9d70e.tar.bz2
online_test-4a0f94084bc26559ef3e26470619e87314f9d70e.zip
Remove commented code
Diffstat (limited to 'yaksh/python_stdio_evaluator.py')
-rw-r--r--yaksh/python_stdio_evaluator.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/yaksh/python_stdio_evaluator.py b/yaksh/python_stdio_evaluator.py
index 991fd63..0f24a27 100644
--- a/yaksh/python_stdio_evaluator.py
+++ b/yaksh/python_stdio_evaluator.py
@@ -30,11 +30,6 @@ def redirect_stdout():
class PythonStdioEvaluator(BaseEvaluator):
"""Tests the Python code obtained from Code Server"""
-
- # def setup(self):
- # super(PythonStdioEvaluator, self).setup()
- # self.files = []
-
def __init__(self, metadata, test_case_data):
self.files = []
@@ -53,7 +48,7 @@ class PythonStdioEvaluator(BaseEvaluator):
if self.files:
delete_files(self.files)
- def compile_code(self): # user_answer, file_paths, expected_input, expected_output, weight):
+ def compile_code(self):
if self.file_paths:
self.files = copy_files(self.file_paths)
submitted = compile(self.user_answer, '<string>', mode='exec')
@@ -68,7 +63,7 @@ class PythonStdioEvaluator(BaseEvaluator):
self.output_value = output_buffer.getvalue().rstrip("\n")
return self.output_value
- def check_code(self): # user_answer, file_paths, partial_grading, expected_input, expected_output, weight):
+ def check_code(self):
success = False
test_case_weight = 0.0