From 8cf14663986802d99e4f7d6aedf0c8842091c4e0 Mon Sep 17 00:00:00 2001 From: shbatm Date: Tue, 21 Jul 2026 11:52:53 -0500 Subject: [PATCH] fix(test): pin aiohttp<3.14 to work around aioresponses incompatibility CI has been red on both Python 3.11 and 3.14 jobs since the runner picked up aiohttp 3.14, which added a required ClientResponse `stream_writer` kwarg that aioresponses 0.7.9 (latest release) doesn't pass -- 11 tests fail with TypeError. Upstream fix is open but unreleased (pnuckowski/aioresponses#288). Test-only pin; doesn't affect the library's own aiohttp>=3.8.1 floor in pyproject.toml/requirements.txt. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01PPpQYEKnQFCiy3GS3D2fKs --- requirements-test.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/requirements-test.txt b/requirements-test.txt index 25d83d7..99bd2be 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -3,3 +3,8 @@ pytest-asyncio>=1.4.0 pytest-cov>=7.1.0 syrupy>=5.5.3 aioresponses>=0.7.9 +# aioresponses 0.7.9 (latest release) predates aiohttp 3.14's new required +# ClientResponse `stream_writer` kwarg -- fix is open upstream but unreleased: +# https://github.com/pnuckowski/aioresponses/pull/288. Remove this cap once +# a released aioresponses version picks it up. +aiohttp<3.14