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 1e2589e commit c33a49dCopy full SHA for c33a49d
tests/execution/test_map_async_iterable.py
@@ -177,10 +177,11 @@ async def __anext__(self):
177
assert await anext(doubles) == 4
178
179
# Throw error
180
- with raises(RuntimeError, match="Ouch") as exc_info:
181
- await doubles.athrow(RuntimeError("Ouch"))
+ message = "allows throwing errors when mapping async iterable"
+ with raises(RuntimeError) as exc_info:
182
+ await doubles.athrow(RuntimeError(message))
183
- assert str(exc_info.value) == "Ouch"
184
+ assert str(exc_info.value) == message
185
186
with raises(StopAsyncIteration):
187
await anext(doubles)
0 commit comments