Repository navigation
tests/test_main.py tests fails with Python 3.14 and click 8.3.1
#3743
Replies: 2 comments
|
The Click version is probably a red herring. The traceback shows that In 0.28.1 the CLI import is wrapped in a try/except that silently falls back to a stub when any CLI dependency is missing: https://github.com/encode/httpx/blob/0.28.1/httpx/__init__.py#L14-L24 Installing Click alone is not enough, because the ``extra also requires Pygments and Rich: https://github.com/encode/httpx/blob/0.28.1/pyproject.toml#L34-L38 For a repository checkout: Or for the released package: I reproduced this in a clean venv. With After installing the ``extras: |
|
mtelka: if the explanation above helped clear up the failing tests, would you mind marking it as the answer when you have a moment? No rush either way. Thanks! |
Uh oh!
There was an error while loading. Please reload this page.
I run tests for
httpx 0.28.1with Python 3.14.2 andclick 8.3.1installed and all tests intests/test_main.pyfails similarly to this one:When I test with Python 3.9.25 and
click 8.1.8then all tests pass.All reactions