summaryrefslogtreecommitdiff
path: root/yaksh/code_evaluator.py
diff options
context:
space:
mode:
authorankitjavalkar2016-11-16 20:32:21 +0530
committerankitjavalkar2016-11-16 20:32:21 +0530
commitcb9a541a4653b2ed13db3a6171b50de575b0f05d (patch)
tree9fcab71c37e49ac1dfe61ba35fb97b50a32aaa25 /yaksh/code_evaluator.py
parent0b151541d9414572965b597815f98c4b057430e1 (diff)
downloadonline_test-cb9a541a4653b2ed13db3a6171b50de575b0f05d.tar.gz
online_test-cb9a541a4653b2ed13db3a6171b50de575b0f05d.tar.bz2
online_test-cb9a541a4653b2ed13db3a6171b50de575b0f05d.zip
Fix Output display of Code Question
Diffstat (limited to 'yaksh/code_evaluator.py')
-rw-r--r--yaksh/code_evaluator.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/yaksh/code_evaluator.py b/yaksh/code_evaluator.py
index 8cea94e..afe18c3 100644
--- a/yaksh/code_evaluator.py
+++ b/yaksh/code_evaluator.py
@@ -124,10 +124,8 @@ class CodeEvaluator(object):
)
if test_case_success:
weight += test_case_weight
- error = err
- else:
- error += err + "\n"
+ error += err + "\n"
test_case_success_status[idx] = test_case_success
success = all(test_case_success_status)