Skip to content

ci: Remove pytest-localserver from requirements-testing.txt#6612

Merged
alexander-alderman-webb merged 11 commits into
masterfrom
webb/requirements-testing/pytest-localserver
Jun 24, 2026
Merged

ci: Remove pytest-localserver from requirements-testing.txt#6612
alexander-alderman-webb merged 11 commits into
masterfrom
webb/requirements-testing/pytest-localserver

ci: Remove pytest-localserver from requirements-testing.txt

1fab687
Select commit
Loading
Failed to load commit list.
@sentry/warden / warden completed Jun 22, 2026 in 0s

2 issues

High

Removing pytest-localserver breaks tests that depend on it - `requirements-testing.txt:6`

pytest-localserver is still actively used in tests/conftest.py (imported as pytest_localserver.http.WSGIServer), which CapturingServer extends and which is consumed by test_transport.py and test_gevent.py — removing it from requirements will cause import errors and test failures.

Removing pytest-localserver breaks all tests due to hard import in conftest.py - `requirements-testing.txt:6`

Removing pytest-localserver from requirements-testing.txt will cause an ImportError at test collection time because tests/conftest.py unconditionally imports from pytest_localserver.http import WSGIServer, crashing the entire test suite.

4 skills analyzed
Skill Findings Duration Cost
security-review 0 1.5s $0.00
code-review 1 17.1s $0.09
find-bugs 1 12.1s $0.13
skill-scanner 0 1.6s $0.00

⏱ 32.3s · 92.4k in / 4.4k out · $0.23