Support Python 3.14 (#1834)
This commit is contained in:
parent
1fd557afdc
commit
3ffe142e9a
1 changed files with 427 additions and 323 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue