Skip to content

DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead. #257

Closed

Description

@woutdenolf
____________________________ ERROR collecting tests ____________________________
/usr/local/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/usr/local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:188: in exec_module
    exec(co, module.__dict__)
/usr/local/lib/python3.10/site-packages/ewoksserver/tests/conftest.py:13: in <module>
    from fastapi.testclient import TestClient
/usr/local/lib/python3.10/site-packages/fastapi/testclient.py:1: in <module>
    from starlette.testclient import TestClient as TestClient  # noqa
/usr/local/lib/python3.10/site-packages/starlette/testclient.py:53: in <module>
    _PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]
/usr/local/lib/python3.10/site-packages/anyio/_lazyimport.py:35: in __getattr__
    emit_deprecation_warning(module_name, name, new_name)
/usr/local/lib/python3.10/site-packages/anyio/_lazyimport.py:82: in emit_deprecation_warning
    warnings.warn(
E   DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.

Activity

  1. woutdenolf commented on Sep 3, 2026

    @woutdenolf
    MemberAuthor

    anyio 4.14.2 -> 4.15.0

  2. woutdenolf commented on Sep 3, 2026

    @woutdenolf
    MemberAuthor
  3. woutdenolf commented on Sep 3, 2026

    @woutdenolf
    MemberAuthor

    This would fix the CI:

    "ignore:The anyio.abc.BlockingPortal alias is deprecated:DeprecationWarning:starlette.testclient"

  4. self-assigned this
    on Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

priority

None yet

progress

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions