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

@ -124,7 +124,8 @@ async def test_request_cancellation():
)
# Give cancellation time to process
with anyio.fail_after(1):
# TODO(Marcelo): Drop the pragma once https://github.com/coveragepy/coveragepy/issues/1987 is fixed.
with anyio.fail_after(1): # pragma: no cover
await ev_cancelled.wait()
@ -176,7 +177,8 @@ async def test_response_id_type_mismatch_string_to_int():
tg.start_soon(mock_server)
tg.start_soon(make_request, client_session)
with anyio.fail_after(2):
# TODO(Marcelo): Drop the pragma once https://github.com/coveragepy/coveragepy/issues/1987 is fixed.
with anyio.fail_after(2): # pragma: no cover
await ev_response_received.wait()
assert len(result_holder) == 1
@ -232,7 +234,8 @@ async def test_error_response_id_type_mismatch_string_to_int():
tg.start_soon(mock_server)
tg.start_soon(make_request, client_session)
with anyio.fail_after(2):
# TODO(Marcelo): Drop the pragma once https://github.com/coveragepy/coveragepy/issues/1987 is fixed.
with anyio.fail_after(2): # pragma: no cover
await ev_error_received.wait()
assert len(error_holder) == 1
@ -287,7 +290,8 @@ async def test_response_id_non_numeric_string_no_match():
tg.start_soon(mock_server)
tg.start_soon(make_request, client_session)
with anyio.fail_after(2):
# TODO(Marcelo): Drop the pragma once https://github.com/coveragepy/coveragepy/issues/1987 is fixed.
with anyio.fail_after(2): # pragma: no cover
await ev_timeout.wait()
@ -333,7 +337,8 @@ async def test_connection_closed():
tg.start_soon(make_request, client_session)
tg.start_soon(mock_server)
with anyio.fail_after(1):
# TODO(Marcelo): Drop the pragma once https://github.com/coveragepy/coveragepy/issues/1987 is fixed.
with anyio.fail_after(1): # pragma: no cover
await ev_closed.wait()
with anyio.fail_after(1):
with anyio.fail_after(1): # pragma: no cover
await ev_response.wait()