Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/11271.contrib.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updated a regex in `test_aiohttp_request_coroutine` for Python 3.14.
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Arthur Darcet
Austin Scola
Bai Haoran
Ben Bader
Ben Beasley
Ben Greiner
Ben Kallus
Ben Timby
Expand Down
8 changes: 6 additions & 2 deletions tests/test_client_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -3670,8 +3670,12 @@ async def handler(request: web.Request) -> web.Response:
not_an_awaitable = aiohttp.request("GET", server.make_url("/"))
with pytest.raises(
TypeError,
match="^object _SessionRequestContextManager "
"can't be used in 'await' expression$",
match=(
"^'_SessionRequestContextManager' object can't be awaited$"
if sys.version_info >= (3, 14)
else "^object _SessionRequestContextManager "
"can't be used in 'await' expression$"
),
):
await not_an_awaitable # type: ignore[misc]

Expand Down
Loading