diff options
author | Palaparthy Adityachandra | 2020-07-02 13:28:48 +0530 |
---|---|---|
committer | GitHub | 2020-07-02 13:28:48 +0530 |
commit | b541b3aa05bf19ed6d4d28373e186883e3c4e966 (patch) | |
tree | 2d0b95b53a60ce6830fcefe115830e89e940845a /yaksh/grader.py | |
parent | c9e0d0df8dcb3a14017cef5ff01832a5345629db (diff) | |
parent | 46ef4a4a563b16bb96d09cb17496afb731e616ad (diff) | |
download | online_test-b541b3aa05bf19ed6d4d28373e186883e3c4e966.tar.gz online_test-b541b3aa05bf19ed6d4d28373e186883e3c4e966.tar.bz2 online_test-b541b3aa05bf19ed6d4d28373e186883e3c4e966.zip |
Merge pull request #719 from prathamesh920/hidden-testcases
Hide test cases
Diffstat (limited to 'yaksh/grader.py')
-rw-r--r-- | yaksh/grader.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yaksh/grader.py b/yaksh/grader.py index c1be493..c0d81fa 100644 --- a/yaksh/grader.py +++ b/yaksh/grader.py @@ -143,6 +143,9 @@ class Grader(object): test_case_instance.compile_code() eval_result = test_case_instance.check_code() test_case_success, err, mark_fraction = eval_result + if not isinstance(err, dict): + err = prettify_exceptions('Error', err) + err['hidden'] = test_case_instance.hidden if test_case_success: weight += mark_fraction * test_case_instance.weight else: |