Skip to content

Commit c33a49d

Browse files
committed
Minor change in test string
But we do not use a Python counterpart to expectPromise. Replicates graphql/graphql-js@30d51c3
1 parent 1e2589e commit c33a49d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/execution/test_map_async_iterable.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,11 @@ async def __anext__(self):
177177
assert await anext(doubles) == 4
178178

179179
# Throw error
180-
with raises(RuntimeError, match="Ouch") as exc_info:
181-
await doubles.athrow(RuntimeError("Ouch"))
180+
message = "allows throwing errors when mapping async iterable"
181+
with raises(RuntimeError) as exc_info:
182+
await doubles.athrow(RuntimeError(message))
182183

183-
assert str(exc_info.value) == "Ouch"
184+
assert str(exc_info.value) == message
184185

185186
with raises(StopAsyncIteration):
186187
await anext(doubles)

0 commit comments

Comments
 (0)