Repository navigation
test: ignore starlette's deprecated anyio alias warning on fresh installs - #54
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The release PR #53 is the first run of
test-dev.ymlon 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 deprecatedanyio.abc.BlockingPortalalias, 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 withuv run --with anyio==4.15.1 --with starlette==0.52.1: 633 passed with and without the overlay.