summaryrefslogtreecommitdiff
path: root/yaksh/grader.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/grader.py')
-rw-r--r--yaksh/grader.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/yaksh/grader.py b/yaksh/grader.py
index eede4d6..c9dc8a2 100644
--- a/yaksh/grader.py
+++ b/yaksh/grader.py
@@ -131,10 +131,9 @@ class Grader(object):
# Add a new signal handler for the execution of this code.
prev_handler = create_signal_handler()
success = False
+ test_case_success_status = [False]
if len(test_case_instances) != 0:
test_case_success_status = [False] * len(test_case_instances)
- else:
- test_case_success_status = [False]
error = []
weight = 0.0