[v1.x] Support Python 3.14 (#2769)

This commit is contained in:
Max 2026-06-03 11:27:55 +01:00 • committed by GitHub
commit 494eb11d36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -409,7 +409,9 @@ async def test_sse_post_requires_the_credential_that_created_the_session(
scope = _sse_scope("GET", "/sse", creator_user)
with anyio.fail_after(5):
async with transport.connect_sse(scope, get_receive, get_send) as (read_stream, write_stream):
async with read_stream, write_stream:
async with read_stream, write_stream: # pragma: no branch
# ^ coverage.py misses the ->exit arc on 3.11+ when the body
# is nested inside multiple async with blocks
async for _ in read_stream:
pass