Closed kloczek closed 9 months ago
I've tested as well 2.31.0 + current master (a5a0e4b5) and it fails as well
The issue is originating from your upgrading outside of our currently defined testing infrastructure requirements. We do not currently support pytest 8.0.0 which is the source of your test failures. Please run the tests with the prescribed requirements, otherwise this will be addressed when support for pytest 8.0 is added.
If it is issue related to use pytest 8.x IMO better would be keep this ticket opened with only renamed subject as sooner or later move to pytest 8 needs to be done.
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulescut off from access to the public network
(pytest is executed with-m "not network"
)Here is pytest output:
```console + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-requests-2.31.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-requests-2.31.0-4.fc35.x86_64/usr/lib/python3.8/site-packages + /usr/bin/pytest -ra -m 'not network' tests ============================= test session starts ============================== platform linux -- Python 3.8.18, pytest-8.0.0, pluggy-1.3.0 rootdir: /home/tkloczko/rpmbuild/BUILD/requests-2.31.0 configfile: pyproject.toml plugins: httpbin-2.0.0, mock-3.12.0 collected 596 items tests/test_help.py ... [ 0%] tests/test_hooks.py ... [ 1%] tests/test_lowlevel.py .................... [ 4%] tests/test_packages.py ... [ 4%] tests/test_requests.py ................................................. [ 13%] ......................................................................Fpytest-httpbin server hit an exception serving request: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1131) attempting to ignore so the rest of the tests can run . [ 25%] ........................................................................ [ 37%] .....................................x.................................. [ 49%] ........................................................ [ 58%] tests/test_structures.py .................... [ 62%] tests/test_testserver.py ......s.... [ 63%] tests/test_utils.py ..s................................................. [ 72%] ........................................................................ [ 84%] ........................................................................ [ 96%] ...sssssssssss..... [100%] =================================== FAILURES =================================== _______________________ TestRequests.test_https_warnings _______________________ self =List of installed modules in build env:
```console Package Version ----------------------------- -------- alabaster 0.7.16 attrs 23.2.0 Babel 2.14.0 blinker 1.6.2 Brotli 1.1.0 build 1.0.3 cffi 1.16.0 chardet 5.2.0 charset-normalizer 3.3.2 click 8.1.7 cppclean 0.13 cryptography 42.0.2 decorator 5.1.1 distro 1.9.0 dnf 4.19.0 docutils 0.20.1 exceptiongroup 1.1.3 flasgger 0.9.7.1 Flask 3.0.2 gpg 1.23.2 greenlet 3.0.3 httpbin 0.10.1 idna 3.6 imagesize 1.4.1 importlib_metadata 7.0.1 importlib_resources 6.1.1 iniconfig 2.0.0 installer 0.7.0 itsdangerous 2.1.2 Jinja2 3.1.3 jsonschema 4.19.1 jsonschema-specifications 2023.7.1 libdnf 0.73.0 MarkupSafe 2.1.3 mistune 2.0.5 packaging 23.2 pkgutil_resolve_name 1.3.10 pluggy 1.3.0 ply 3.11 pycparser 2.21 Pygments 2.17.2 pyproject_hooks 1.0.0 PySocks 1.7.1 pytest 8.0.0 pytest-httpbin 2.0.0 pytest-mock 3.12.0 python-dateutil 2.8.2 pytz 2024.1 PyYAML 6.0.1 referencing 0.30.2 requests 2.31.0 rpds-py 0.18.0 setuptools 69.1.0 six 1.16.0 snowballstemmer 2.2.0 Sphinx 7.1.2 sphinxcontrib-applehelp 1.0.4 sphinxcontrib-devhelp 1.0.5 sphinxcontrib-htmlhelp 2.0.5 sphinxcontrib-jsmath 1.0.1 sphinxcontrib-qthelp 1.0.7 sphinxcontrib-serializinghtml 1.1.10 tomli 2.0.1 trustme 1.1.0 urllib3 1.26.18 Werkzeug 3.0.1 wheel 0.42.0 zipp 3.17.0 ```Please let me know if you need more details or want me to perform some diagnostics.