We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2511b67 commit 57e4ad3Copy full SHA for 57e4ad3
pythonwhat/test_exercise.py
@@ -3,7 +3,7 @@
3
from pythonwhat.sct_syntax import Ex, get_chains
4
from pythonwhat.utils import check_str, check_process
5
from protowhat.Reporter import Reporter
6
-from protowhat.failure import TestFail, InstructorError
+from protowhat.failure import Failure, InstructorError
7
from pythonwhat.utils import include_v1
8
9
@@ -61,7 +61,7 @@ def test_exercise(
61
for test in tree.crnt_node:
62
test(state)
63
64
- except (TestFail, InstructorError) as e:
+ except Failure as e:
65
if isinstance(e, InstructorError):
66
# TODO: decide based on context
67
raise e
0 commit comments