[CL-PY316-DEPRECATION] tests: inspect.iscoroutinefunction (Python 3.16 deprecation) #40

Merged
andrei merged 1 commit from feature/claude-asyncio-iscoroutinefunction-deprecation into master 2026-05-08 14:50:55 +00:00
Owner

Boy Scout: единственный DeprecationWarning во всей 4103-тестовой suite. asyncio.iscoroutinefunction → inspect.iscoroutinefunction (Python 3.16 удалит первый). 6/6 PASS, 0 warnings.

Boy Scout: единственный DeprecationWarning во всей 4103-тестовой suite. asyncio.iscoroutinefunction → inspect.iscoroutinefunction (Python 3.16 удалит первый). 6/6 PASS, 0 warnings.
[CL-PY316-DEPRECATION] tests: inspect.iscoroutinefunction (asyncio variant deprecated 3.16)
Some checks failed
Forgejo Smoke Test / Smoke (pull_request) Has been cancelled
Arnold Forgejo CI / backend-tests (pull_request) Has been cancelled
Arnold Forgejo CI / frontend-audit (pull_request) Has been cancelled
Arnold Forgejo CI / secret-scan (pull_request) Has been cancelled
d502d739e6
Python 3.14+ deprecates ``asyncio.iscoroutinefunction``; 3.16 removes
it. Single callsite in
``tests/test_sentry_arnold_trader_aiohttp_adapter_aexit.py:135``
was the only ``DeprecationWarning`` in the entire 4103-test suite.

Fix: switch to ``inspect.iscoroutinefunction`` which is the
forward-compatible replacement (same semantics, accepts the same
callable types).

Verification: ``pytest tests/test_sentry_arnold_trader_aiohttp_adapter_aexit.py``
→ 6/6 PASS, 0 warnings (was 1 DeprecationWarning before).

This is the last remaining warning across the full test suite — a
Boy Scout cleanup that future-proofs the codebase against the
Python 3.16 upgrade.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
andrei merged commit c4454e18f5 into master 2026-05-08 14:50:55 +00:00
andrei deleted branch feature/claude-asyncio-iscoroutinefunction-deprecation 2026-05-08 14:50:56 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
europa-tech-srl/arnold-trader-app!40
No description provided.