Skip to content

Commit f498569

Browse files
committed
Fix minor testing issues
1 parent 93d29f5 commit f498569

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/graphql/pyutils/gather_with_cancel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async def gather_with_cancel(*awaitables: Awaitable[Any]) -> list[Any]:
2525
for aw in awaitables
2626
]
2727
except TypeError:
28-
return await gather(*awaitables) # type: ignore[arg-type]
28+
return await gather(*awaitables)
2929
try:
3030
return await gather(*tasks)
3131
except Exception:

tests/execution/test_stream.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,6 +1559,7 @@ async def friend_list(_info):
15591559
]
15601560

15611561
@pytest.mark.asyncio
1562+
@pytest.mark.filterwarnings("ignore:.* was never awaited:RuntimeWarning")
15621563
async def filters_stream_payloads_that_are_nulled_in_a_deferred_payload():
15631564
document = parse(
15641565
"""

tests/pyutils/test_gather_with_cancel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from asyncio import Event, create_task, gather, sleep, wait_for
24
from typing import Callable
35

0 commit comments

Comments
 (0)