Thanks to visit codestin.com
Credit goes to github.com

Skip to content

remover o filterwarnings do BlockingPortal quando starlette lancar versao com Kludex/starlette#3498 (verificar com python -W error::DeprecationWarning -c "import starlette.testclient") #1915

Description

@FabioLeitao

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

  1. Starlette ships a release that includes that fix.
  2. Confirm locally / in CI:
python -W error::DeprecationWarning -c "import starlette.testclient"
  1. Remove the filterwarnings entry and the tests/conftest.py _BLOCKINGPORTAL_DEPRECATION_FILTER mark (keep addopts = -v -W error).
  2. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions