Skip to content

test: ignore anyio's BlockingPortal alias deprecation - #452

Merged
Vortiago merged 1 commit into
mainfrom
anyio-blockingportal-warning
Sep 7, 2026
Merged

test: ignore anyio's BlockingPortal alias deprecation#452
Vortiago merged 1 commit into
mainfrom
anyio-blockingportal-warning

Conversation

@Vortiago

@Vortiago Vortiago commented Sep 7, 2026

Copy link
Copy Markdown
Owner

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. #449 will want the duplicate line dropped when it rebases.

Refs #449

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
Vortiago merged commit 6bb36a2 into main Sep 7, 2026
59 checks passed
@Vortiago
Vortiago deleted the anyio-blockingportal-warning branch September 7, 2026 08:08
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.
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