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

@ -410,11 +410,9 @@ async def test_create_message_tool_result_validation():
# Case 8: empty messages list - skips validation entirely
# Covers the `if messages:` branch (line 280->302)
with anyio.move_on_after(0.01):
await session.create_message(
messages=[],
max_tokens=100,
)
# TODO(Marcelo): Drop the pragma once https://github.com/coveragepy/coveragepy/issues/1987 is fixed.
with anyio.move_on_after(0.01): # pragma: no cover
await session.create_message(messages=[], max_tokens=100)
@pytest.mark.anyio