Skip to content

deps: drop pytest-asyncio, nothing in the suite uses it - #11

Merged
StaticHumStudio merged 1 commit into
mainfrom
deps/drop-unused-pytest-asyncio
Aug 8, 2026
Merged

deps: drop pytest-asyncio, nothing in the suite uses it#11
StaticHumStudio merged 1 commit into
mainfrom
deps/drop-unused-pytest-asyncio

Conversation

@StaticHumStudio

Copy link
Copy Markdown
Owner

Follow-up to #8.

What

Removes pytest-asyncio from requirements-dev.txt. One line.

Why

Nothing uses it. There is no asyncio_mode setting (no pyproject.toml, pytest.ini, setup.cfg, or tox.ini in the repo at all), no @pytest.mark.asyncio, no async def test_, and no import of pytest_asyncio anywhere in the tree. Every async path in tests/test_request_limits.py and tests/test_peer_discovery_security.py goes through asyncio.run() inside an ordinary sync test.

It came in with the API auth and TLS work and has been carrying a pytest<9 ceiling ever since. That ceiling is what turned CVE-2025-71176 into a coupled two-package bump instead of a one-line one. Dropping it removes both the dependency and the next version of that problem.

Verification

239 passed, 5 skipped in 3.06s

Fresh venv with the package genuinely absent (importlib.util.find_spec('pytest_asyncio') is None asserted before the run), not just deleted from the requirements file. Identical counts to the run with it installed.

🤖 Generated with Claude Code

There is no asyncio_mode setting, no @pytest.mark.asyncio, no async def
test_, and no import of pytest_asyncio anywhere in the tree. Every async
path in tests/test_request_limits.py and tests/test_peer_discovery_security.py
runs through asyncio.run() inside an ordinary sync test. The pin was left
behind by the API auth and TLS work and has been carrying a pytest ceiling
ever since, which is what turned the CVE-2025-71176 bump into a coupled
two-package change.

239 passed, 5 skipped with the package genuinely absent from the venv,
unchanged from the run with it installed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@StaticHumStudio
StaticHumStudio merged commit c84fa6d into main Aug 8, 2026
7 checks passed
@StaticHumStudio
StaticHumStudio deleted the deps/drop-unused-pytest-asyncio branch August 8, 2026 16: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