summaryrefslogtreecommitdiff
path: root/yaksh/python_stdio_evaluator.py
diff options
context:
space:
mode:
authorankitjavalkar2016-12-19 19:37:23 +0530
committerankitjavalkar2016-12-20 12:46:04 +0530
commit798d36aa12e22928e884668ae5c80a25d48393ea (patch)
tree8de32b8f4eac72ad103272ab056c421c46718c11 /yaksh/python_stdio_evaluator.py
parent4a0f94084bc26559ef3e26470619e87314f9d70e (diff)
downloadonline_test-798d36aa12e22928e884668ae5c80a25d48393ea.tar.gz
online_test-798d36aa12e22928e884668ae5c80a25d48393ea.tar.bz2
online_test-798d36aa12e22928e884668ae5c80a25d48393ea.zip
Change weight variable name to mark_fraction
Diffstat (limited to 'yaksh/python_stdio_evaluator.py')
-rw-r--r--yaksh/python_stdio_evaluator.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yaksh/python_stdio_evaluator.py b/yaksh/python_stdio_evaluator.py
index 0f24a27..07bd59c 100644
--- a/yaksh/python_stdio_evaluator.py
+++ b/yaksh/python_stdio_evaluator.py
@@ -65,13 +65,13 @@ class PythonStdioEvaluator(BaseEvaluator):
def check_code(self):
success = False
- test_case_weight = 0.0
+ mark_fraction = 0.0
tb = None
if self.output_value == self.expected_output:
success = True
err = "Correct answer"
- test_case_weight = self.weight
+ mark_fraction = self.weight
else:
success = False
err = dedent("""
@@ -85,4 +85,4 @@ class PythonStdioEvaluator(BaseEvaluator):
)
)
del tb
- return success, err, test_case_weight
+ return success, err, mark_fraction