diff options
author | Prabhu Ramachandran | 2016-09-18 10:06:39 +0530 |
---|---|---|
committer | GitHub | 2016-09-18 10:06:39 +0530 |
commit | f78647307f2e5f858d1c1f74507a8626ec117223 (patch) | |
tree | 245f8f5af7ed23dc442d8809ad65390184f4121e /yaksh/python_assertion_evaluator.py | |
parent | 5b2a6fe665a3add0916a255e5436841b820146ee (diff) | |
parent | a46ef7b800b18b95a533022bd4ef2afb7681104b (diff) | |
download | online_test-f78647307f2e5f858d1c1f74507a8626ec117223.tar.gz online_test-f78647307f2e5f858d1c1f74507a8626ec117223.tar.bz2 online_test-f78647307f2e5f858d1c1f74507a8626ec117223.zip |
Merge pull request #138 from maheshgudi/python_assertion_bug_fix
Python assertion bug fix
Diffstat (limited to 'yaksh/python_assertion_evaluator.py')
-rw-r--r-- | yaksh/python_assertion_evaluator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/python_assertion_evaluator.py b/yaksh/python_assertion_evaluator.py index 04a4e69..1b66fd2 100644 --- a/yaksh/python_assertion_evaluator.py +++ b/yaksh/python_assertion_evaluator.py @@ -47,8 +47,8 @@ class PythonAssertionEvaluator(CodeEvaluator): fname, lineno, func, text = info[-1] text = str(test_case).splitlines()[lineno-1] err = "{0} {1} in: {2}".format(type.__name__, str(value), text) - except TimeoutException: - raise + except Exception: + raise # Exception will be caught in CodeEvaluator. else: success = True err = 'Correct answer' |