diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-02-12 14:47:33 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-02-12 14:47:33 +0100 |
commit | 05e778a6d06f9d74ebc73fb5113643ffd80a6a8b (patch) | |
tree | 61865d508a5cb95e8a750057d11c61159451b861 /prolog/problems/clp_fd/gcd_3 | |
parent | 75a6d1e8b3f48cb6beb3a5b417d84c83615acd68 (diff) |
Prolog: catch exceptions in test functions
Diffstat (limited to 'prolog/problems/clp_fd/gcd_3')
-rw-r--r-- | prolog/problems/clp_fd/gcd_3/common.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/prolog/problems/clp_fd/gcd_3/common.py b/prolog/problems/clp_fd/gcd_3/common.py index 234b126..82ffb28 100644 --- a/prolog/problems/clp_fd/gcd_3/common.py +++ b/prolog/problems/clp_fd/gcd_3/common.py @@ -45,6 +45,8 @@ def test(code, aux_code): for query, answers in test_cases: if prolog.engine.check_answers(engine_id, query=query, answers=answers, timeout=1.0): n_correct += 1 + except: + pass finally: if engine_id: prolog.engine.destroy(engine_id) |