Context
Follow-up to #1871 Option A: pyproject.toml [tool.pytest.ini_options].filterwarnings (and the matching per-item mark in tests/conftest.py) ignores:
The anyio.abc.BlockingPortal alias is deprecated
so Dependabot uv-minor-patch can keep CI with addopts = -W error / pytest -v -W error.
Upstream: Kludex/starlette#3498 (stop using anyio.abc.BlockingPortal).
When to close
- Starlette ships a release that includes that fix.
- Confirm locally / in CI:
python -W error::DeprecationWarning -c "import starlette.testclient"
- Remove the
filterwarnings entry and the tests/conftest.py _BLOCKINGPORTAL_DEPRECATION_FILTER mark (keep addopts = -v -W error).
- Re-run
./scripts/quick-test.sh --path tests/test_pytest_blockingportal_filterwarnings.py and drop that test file if the filter is gone.
Do not replace this with ignore::DeprecationWarning or a :anyio.abc module-scope filter.
Context
Follow-up to #1871 Option A:
pyproject.toml[tool.pytest.ini_options].filterwarnings(and the matching per-item mark intests/conftest.py) ignores:The anyio.abc.BlockingPortal alias is deprecatedso Dependabot uv-minor-patch can keep CI with
addopts = -W error/pytest -v -W error.Upstream: Kludex/starlette#3498 (stop using
anyio.abc.BlockingPortal).When to close
python -W error::DeprecationWarning -c "import starlette.testclient"filterwarningsentry and thetests/conftest.py_BLOCKINGPORTAL_DEPRECATION_FILTERmark (keepaddopts = -v -W error)../scripts/quick-test.sh --path tests/test_pytest_blockingportal_filterwarnings.pyand drop that test file if the filter is gone.Do not replace this with
ignore::DeprecationWarningor a:anyio.abcmodule-scope filter.