File tree 2 files changed +13
-9
lines changed
2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ def _string_parts(self) -> Iterator[str]:
125
125
# Present the main message, with relevant context indented.
126
126
yield f"{ self .message } \n "
127
127
if self .context is not None :
128
- yield _prefix_with_indent ( "Relevant context: " , self .context )
128
+ yield f" \n { self .context } \n "
129
129
130
130
# Space out the note/hint messages.
131
131
if self .attention_stmt is not None or self .hint_stmt is not None :
Original file line number Diff line number Diff line change @@ -73,8 +73,9 @@ def test_complete(self) -> None:
73
73
74
74
Oh no!
75
75
It broke. :(
76
- Relevant context: Something went wrong
77
- very wrong.
76
+
77
+ Something went wrong
78
+ very wrong.
78
79
79
80
Note: You did something wrong, which is what caused this error.
80
81
Hint: Do it better next time, by trying harder.
@@ -117,8 +118,9 @@ def test_no_note(self) -> None:
117
118
118
119
Oh no!
119
120
It broke. :(
120
- Relevant context: Something went wrong
121
- very wrong.
121
+
122
+ Something went wrong
123
+ very wrong.
122
124
123
125
Hint: Do it better next time, by trying harder.
124
126
"""
@@ -139,8 +141,9 @@ def test_no_hint(self) -> None:
139
141
140
142
Oh no!
141
143
It broke. :(
142
- Relevant context: Something went wrong
143
- very wrong.
144
+
145
+ Something went wrong
146
+ very wrong.
144
147
145
148
Note: You did something wrong, which is what caused this error.
146
149
"""
@@ -201,8 +204,9 @@ def test_no_hint_no_note(self) -> None:
201
204
202
205
Oh no!
203
206
It broke. :(
204
- Relevant context: Something went wrong
205
- very wrong.
207
+
208
+ Something went wrong
209
+ very wrong.
206
210
"""
207
211
)
208
212
You can’t perform that action at this time.
0 commit comments