Skip to content

Commit a57eab5

Browse files
committed
test_not and fail were not formatting feedback
1 parent 3b0c488 commit a57eab5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pythonwhat/check_funcs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def test_not(*args, msg, state=None):
179179
return state
180180

181181
_msg = state.build_message(msg)
182-
return rep.do_test(Test(msg))
182+
return rep.do_test(Test(_msg))
183183

184184
# utility functions -----------------------------------------------------------
185185

@@ -194,7 +194,7 @@ def fail(msg="", state=None):
194194
"""Fail test with message"""
195195
rep = Reporter.active_reporter
196196
_msg = state.build_message(msg)
197-
rep.do_test(Test(Feedback(msg, state.highlight)))
197+
rep.do_test(Test(Feedback(_msg, state.highlight)))
198198

199199
return state
200200

0 commit comments

Comments
 (0)