Skip to content

test: ignore starlette's deprecated anyio alias warning on fresh installs - #54

Merged
iklobato merged 1 commit into
devfrom
fix/ci-anyio-deprecation
Oct 12, 2026
Merged

iklobato merged 1 commit into
devfrom
fix/ci-anyio-deprecation

Conversation

@iklobato

Copy link
Copy Markdown
Owner

The release PR #53 is the first run of test-dev.yml on this code, and it failed to collect 28 test modules: pip resolved anyio 4.15.1 with starlette 0.52.1, starlette's TestClient still uses the deprecated anyio.abc.BlockingPortal alias, and the suite runs with warnings as errors. The lock pins anyio 4.9.0, so nothing showed locally.

One line in pyproject.toml: that exact third-party warning is ignored. Reproduced and fixed locally with uv run --with anyio==4.15.1 --with starlette==0.52.1: 633 passed with and without the overlay.

…collects on fresh installs

The CI workflow installs the package with pip, unpinned, and resolved
anyio 4.15.1 with starlette 0.52.1. starlette's TestClient still names
anyio.abc.BlockingPortal, which anyio now deprecates at import, and with
filterwarnings = ["error"] that one warning broke the collection of 28
test modules. The lock pins anyio 4.9.0, so nothing showed locally.
The warning is third-party and narrow; it is ignored by its exact text.
Reproduced and fixed with `uv run --with anyio==4.15.1 --with
starlette==0.52.1`: 633 passed with and without the overlay.
@iklobato
iklobato merged commit fc8102c into dev Oct 12, 2026
1 check passed
@iklobato
iklobato deleted the fix/ci-anyio-deprecation branch October 12, 2026 01:30
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