summaryrefslogtreecommitdiff
path: root/yaksh/grader.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/grader.py')
-rw-r--r--yaksh/grader.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/yaksh/grader.py b/yaksh/grader.py
index 38cce8d..eede4d6 100644
--- a/yaksh/grader.py
+++ b/yaksh/grader.py
@@ -131,7 +131,10 @@ 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] * len(test_case_instances)
+ 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