Support Python 3.14 (#1834)

This commit is contained in:
Marcelo Trylesinski 2026-01-07 17:28:23 +01:00 • committed by GitHub
commit 3ffe142e9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -312,7 +312,8 @@ async def test_task_metadata_in_call_tool_request() -> None:
async with anyio.create_task_group() as tg:
async def handle_messages():
async for message in server_session.incoming_messages:
# TODO(Marcelo): Drop the pragma once https://github.com/coveragepy/coveragepy/issues/1987 is fixed.
async for message in server_session.incoming_messages: # pragma: no cover
await server._handle_message(message, server_session, {}, False)
tg.start_soon(handle_messages)
@ -391,8 +392,8 @@ async def test_task_metadata_is_task_property() -> None:
),
) as server_session:
async with anyio.create_task_group() as tg:
async def handle_messages():
# TODO(Marcelo): Drop the pragma once https://github.com/coveragepy/coveragepy/issues/1987 is fixed.
async def handle_messages(): # pragma: no cover
async for message in server_session.incoming_messages:
await server._handle_message(message, server_session, {}, False)