test: ignore anyio's BlockingPortal alias deprecation - #452
Merged
Conversation
anyio 4.15 turned `anyio.abc.BlockingPortal` into a deprecating lazy alias for `anyio.from_thread.BlockingPortal`. starlette's testclient still names the old spelling at module level, so under `error` all 26 collections that import fastapi.testclient abort. Every `tests` matrix job and the bridge E2E job go red on a tree nobody touched, on every OS and Python version. Matched by message rather than by class, for the same reason as the starlette line above it: the warning's class is anyio-private, not a public symbol to import. Remove when starlette migrates to the `from_thread` spelling. The same one-line fix rides along inside #449; this lifts it out so every open PR and main can go green without waiting on that feature branch.
Vortiago
added a commit
that referenced
this pull request
Sep 7, 2026
Picks up the anyio BlockingPortal warning filter from #452, which is what this branch's red CI was waiting on.
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.
anyio 4.15 turned
anyio.abc.BlockingPortalinto a deprecating lazy alias foranyio.from_thread.BlockingPortal. starlette's testclient still names the old spelling at module level, so undererrorall 26 collections that importfastapi.testclientabort — everytestsmatrix job and the bridge E2E job go red on a tree nobody touched, on every OS and Python version.Matched by message rather than by class, for the same reason as the starlette line above it: the warning's class is anyio-private, not a public symbol to import. Remove when starlette migrates to the
from_threadspelling.The same one-line fix rides along inside #449; this lifts it out so every open PR and main can go green without waiting on that feature branch. #449 will want the duplicate line dropped when it rebases.
Refs #449