Skip to content

Breaking change in httpx=1.0.dev1 for starlette.testclient.TestClient #2960

@woutdenolf

Description

@woutdenolf
..\build_venv\Lib\site-packages\ewoksserver\tests\conftest.py:8: in <module>
    from fastapi.testclient import TestClient
..\build_venv\Lib\site-packages\fastapi\testclient.py:1: in <module>
    from starlette.testclient import TestClient as TestClient  # noqa
..\build_venv\Lib\site-packages\starlette\testclient.py:191: in <module>
    class _TestClientTransport(httpx.BaseTransport):
E   AttributeError: module 'httpx' has no attribute 'BaseTransport'. Did you mean: 'Transport'?
# this was ok
< httpcore            1.0.9
< httpx               0.28.1

# this breaks the API
> httpx               1.0.dev1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions