Skip to content

fix: suppress aiohttp DeprecationWarning on Python 3.12+#52

Merged
kurok merged 1 commit intomainfrom
fix/suppress-aiohttp-deprecation-warning
Mar 17, 2026
Merged

fix: suppress aiohttp DeprecationWarning on Python 3.12+#52
kurok merged 1 commit intomainfrom
fix/suppress-aiohttp-deprecation-warning

Conversation

@kurok
Copy link
Copy Markdown
Owner

@kurok kurok commented Mar 17, 2026

Summary

  • Add pytest filterwarnings to suppress aiohttp's enable_cleanup_closed DeprecationWarning
  • Eliminates 106 warnings per test run on Python 3.12 and 3.13

Context

aiohttp's TCPConnector emits DeprecationWarning: enable_cleanup_closed ignored on Python 3.12+ because CPython fixed the underlying issue (python/cpython#118960). This is upstream noise — not actionable from our side.

The aiohttp connector emits 100+ DeprecationWarnings on Python 3.12+
about enable_cleanup_closed being unnecessary since CPython fixed the
underlying issue. Filter in pytest config since this is upstream noise.
@kurok kurok merged commit e75e8e3 into main Mar 17, 2026
13 checks passed
@kurok kurok deleted the fix/suppress-aiohttp-deprecation-warning branch March 20, 2026 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant