Mock Version: 5.2 Mock Version: 5.2 Mock Version: 5.2 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-httpx.spec'], chrootPath='/var/lib/mock/f40-build-2542745-61884/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-httpx.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1710374400 Wrote: /builddir/build/SRPMS/python-pytest-httpx-0.29.0-1.fc40.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-httpx.spec'], chrootPath='/var/lib/mock/f40-build-2542745-61884/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-httpx.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1710374400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.WUj1e7 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pytest_httpx-0.29.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/pytest-httpx-0.29.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd pytest_httpx-0.29.0 + rm -rf /builddir/build/BUILD/pytest_httpx-0.29.0-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/pytest_httpx-0.29.0-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf pytest-httpx.egg-info + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.tFLUWg + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd pytest_httpx-0.29.0 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' running build running build_py creating build creating build/lib creating build/lib/pytest_httpx copying pytest_httpx/_request_matcher.py -> build/lib/pytest_httpx copying pytest_httpx/__init__.py -> build/lib/pytest_httpx copying pytest_httpx/_pretty_print.py -> build/lib/pytest_httpx copying pytest_httpx/version.py -> build/lib/pytest_httpx copying pytest_httpx/_httpx_internals.py -> build/lib/pytest_httpx copying pytest_httpx/_httpx_mock.py -> build/lib/pytest_httpx copying pytest_httpx/py.typed -> build/lib/pytest_httpx + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.9gWMLV + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch ++ dirname /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd pytest_httpx-0.29.0 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch --prefix /usr running install /usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. Follow the current Python packaging guidelines when building Python RPM packages. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html and https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/ for details. ******************************************************************************** !! self.initialize_options() running install_lib creating /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr creating /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib creating /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12 creating /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages creating /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx copying build/lib/pytest_httpx/py.typed -> /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx copying build/lib/pytest_httpx/_request_matcher.py -> /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx copying build/lib/pytest_httpx/__init__.py -> /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx copying build/lib/pytest_httpx/_pretty_print.py -> /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx copying build/lib/pytest_httpx/version.py -> /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx copying build/lib/pytest_httpx/_httpx_internals.py -> /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx copying build/lib/pytest_httpx/_httpx_mock.py -> /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx byte-compiling /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/_request_matcher.py to _request_matcher.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/_pretty_print.py to _pretty_print.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/version.py to version.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/_httpx_internals.py to _httpx_internals.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/_httpx_mock.py to _httpx_mock.cpython-312.pyc writing byte-compilation script '/tmp/tmp9q14lvqu.py' /usr/bin/python3 /tmp/tmp9q14lvqu.py removing /tmp/tmp9q14lvqu.py running install_egg_info running egg_info creating pytest_httpx.egg-info writing pytest_httpx.egg-info/PKG-INFO writing dependency_links to pytest_httpx.egg-info/dependency_links.txt writing entry points to pytest_httpx.egg-info/entry_points.txt writing requirements to pytest_httpx.egg-info/requires.txt writing top-level names to pytest_httpx.egg-info/top_level.txt writing manifest file 'pytest_httpx.egg-info/SOURCES.txt' reading manifest file 'pytest_httpx.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'pytest_httpx.egg-info/SOURCES.txt' Copying pytest_httpx.egg-info to /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx-0.29.0-py3.12.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/bin/__pycache__ + /usr/bin/find-debuginfo -j64 --strict-build-id -m -i --build-id-seed 0.29.0-1.fc40 --unique-debug-suffix -0.29.0-1.fc40.noarch --unique-debug-src-base python-pytest-httpx-0.29.0-1.fc40.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/pytest_httpx-0.29.0 find-debuginfo: starting Extracting debug info from 0 files Creating .debug symlinks for symlinks to ELF files find: ‘debug’: No such file or directory find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j64 Bytecompiling .py files below /builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12 using python3.12 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.eL3Xmo + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd pytest_httpx-0.29.0 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + PATH=/builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib64/python3.12/site-packages:/builddir/build/BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_XDIST_AUTO_NUM_WORKERS=64 + /usr/bin/pytest -v tests ============================= test session starts ============================== platform linux -- Python 3.12.0, pytest-7.3.2, pluggy-1.3.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/pytest_httpx-0.29.0 plugins: httpx-0.29.0, asyncio-0.21.0, anyio-3.7.1 asyncio: mode=Mode.STRICT collecting ... collected 208 items tests/test_httpx_async.py::test_without_response PASSED [ 0%] tests/test_httpx_async.py::test_default_response PASSED [ 0%] tests/test_httpx_async.py::test_url_matching PASSED [ 1%] tests/test_httpx_async.py::test_url_query_string_matching PASSED [ 1%] tests/test_httpx_async.py::test_url_not_matching PASSED [ 2%] tests/test_httpx_async.py::test_url_query_string_not_matching PASSED [ 2%] tests/test_httpx_async.py::test_method_matching PASSED [ 3%] tests/test_httpx_async.py::test_method_not_matching PASSED [ 3%] tests/test_httpx_async.py::test_with_one_response PASSED [ 4%] tests/test_httpx_async.py::test_response_with_string_body PASSED [ 4%] tests/test_httpx_async.py::test_response_with_html_string_body PASSED [ 5%] tests/test_httpx_async.py::test_stream_response_streaming PASSED [ 5%] tests/test_httpx_async.py::test_content_response_streaming PASSED [ 6%] tests/test_httpx_async.py::test_text_response_streaming PASSED [ 6%] tests/test_httpx_async.py::test_default_response_streaming PASSED [ 7%] tests/test_httpx_async.py::test_with_many_responses PASSED [ 7%] tests/test_httpx_async.py::test_with_many_responses_methods PASSED [ 8%] tests/test_httpx_async.py::test_with_many_responses_status_codes PASSED [ 8%] tests/test_httpx_async.py::test_with_many_responses_urls_str PASSED [ 9%] tests/test_httpx_async.py::test_response_with_pattern_in_url PASSED [ 9%] tests/test_httpx_async.py::test_request_with_pattern_in_url PASSED [ 10%] tests/test_httpx_async.py::test_requests_with_pattern_in_url PASSED [ 10%] tests/test_httpx_async.py::test_callback_with_pattern_in_url PASSED [ 11%] tests/test_httpx_async.py::test_async_callback_with_await_statement PASSED [ 11%] tests/test_httpx_async.py::test_async_callback_with_pattern_in_url PASSED [ 12%] tests/test_httpx_async.py::test_with_many_responses_urls_instances PASSED [ 12%] tests/test_httpx_async.py::test_with_http_version_2 PASSED [ 12%] tests/test_httpx_async.py::test_with_headers PASSED [ 13%] tests/test_httpx_async.py::test_requests_retrieval PASSED [ 13%] tests/test_httpx_async.py::test_requests_retrieval_on_same_url PASSED [ 14%] tests/test_httpx_async.py::test_request_retrieval_on_same_url PASSED [ 14%] tests/test_httpx_async.py::test_requests_retrieval_on_same_method PASSED [ 15%] tests/test_httpx_async.py::test_request_retrieval_on_same_method PASSED [ 15%] tests/test_httpx_async.py::test_requests_retrieval_on_same_url_and_method PASSED [ 16%] tests/test_httpx_async.py::test_default_requests_retrieval PASSED [ 16%] tests/test_httpx_async.py::test_default_request_retrieval PASSED [ 17%] tests/test_httpx_async.py::test_requests_json_body PASSED [ 17%] tests/test_httpx_async.py::test_callback_raising_exception PASSED [ 18%] tests/test_httpx_async.py::test_async_callback_raising_exception PASSED [ 18%] tests/test_httpx_async.py::test_request_exception_raising PASSED [ 19%] tests/test_httpx_async.py::test_non_request_exception_raising PASSED [ 19%] tests/test_httpx_async.py::test_callback_returning_response PASSED [ 20%] tests/test_httpx_async.py::test_async_callback_returning_response PASSED [ 20%] tests/test_httpx_async.py::test_callback_executed_twice PASSED [ 21%] tests/test_httpx_async.py::test_async_callback_executed_twice PASSED [ 21%] tests/test_httpx_async.py::test_callback_registered_after_response PASSED [ 22%] tests/test_httpx_async.py::test_async_callback_registered_after_response PASSED [ 22%] tests/test_httpx_async.py::test_response_registered_after_callback PASSED [ 23%] tests/test_httpx_async.py::test_response_registered_after_async_callback PASSED [ 23%] tests/test_httpx_async.py::test_callback_matching_method PASSED [ 24%] tests/test_httpx_async.py::test_async_callback_matching_method PASSED [ 24%] tests/test_httpx_async.py::test_request_retrieval_with_more_than_one PASSED [ 25%] tests/test_httpx_async.py::test_headers_matching PASSED [ 25%] tests/test_httpx_async.py::test_multi_value_headers_matching PASSED [ 25%] tests/test_httpx_async.py::test_multi_value_headers_not_matching_single_value_issued PASSED [ 26%] tests/test_httpx_async.py::test_multi_value_headers_not_matching_multi_value_issued PASSED [ 26%] tests/test_httpx_async.py::test_headers_matching_respect_case PASSED [ 27%] tests/test_httpx_async.py::test_headers_not_matching PASSED [ 27%] tests/test_httpx_async.py::test_url_not_matching_upper_case_headers_matching PASSED [ 28%] tests/test_httpx_async.py::test_content_matching PASSED [ 28%] tests/test_httpx_async.py::test_proxy_matching FAILED [ 29%] tests/test_httpx_async.py::test_proxy_matching ERROR [ 29%] tests/test_httpx_async.py::test_proxy_not_matching FAILED [ 29%] tests/test_httpx_async.py::test_proxy_not_matching ERROR [ 29%] tests/test_httpx_async.py::test_proxy_not_existing PASSED [ 30%] tests/test_httpx_async.py::test_requests_retrieval_content_matching PASSED [ 30%] tests/test_httpx_async.py::test_requests_retrieval_json_matching PASSED [ 31%] tests/test_httpx_async.py::test_requests_retrieval_proxy_matching FAILED [ 31%] tests/test_httpx_async.py::test_requests_retrieval_proxy_matching ERROR [ 31%] tests/test_httpx_async.py::test_request_retrieval_proxy_matching FAILED [ 32%] tests/test_httpx_async.py::test_request_retrieval_proxy_matching ERROR [ 32%] tests/test_httpx_async.py::test_content_not_matching PASSED [ 32%] tests/test_httpx_async.py::test_json_matching PASSED [ 33%] tests/test_httpx_async.py::test_json_partial_matching PASSED [ 33%] tests/test_httpx_async.py::test_json_not_matching PASSED [ 34%] tests/test_httpx_async.py::test_headers_and_json_not_matching PASSED [ 34%] tests/test_httpx_async.py::test_match_json_invalid_json PASSED [ 35%] tests/test_httpx_async.py::test_headers_and_content_matching PASSED [ 35%] tests/test_httpx_async.py::test_headers_not_matching_and_content_matching PASSED [ 36%] tests/test_httpx_async.py::test_headers_matching_and_content_not_matching PASSED [ 36%] tests/test_httpx_async.py::test_headers_and_content_not_matching PASSED [ 37%] tests/test_httpx_async.py::test_url_and_headers_and_content_matching PASSED [ 37%] tests/test_httpx_async.py::test_headers_not_matching_and_url_and_content_matching PASSED [ 37%] tests/test_httpx_async.py::test_url_and_headers_not_matching_and_content_matching PASSED [ 38%] tests/test_httpx_async.py::test_url_and_headers_matching_and_content_not_matching PASSED [ 38%] tests/test_httpx_async.py::test_headers_matching_and_url_and_content_not_matching PASSED [ 39%] tests/test_httpx_async.py::test_url_matching_and_headers_and_content_not_matching PASSED [ 39%] tests/test_httpx_async.py::test_url_and_headers_and_content_not_matching PASSED [ 40%] tests/test_httpx_async.py::test_method_and_url_and_headers_and_content_matching PASSED [ 40%] tests/test_httpx_async.py::test_headers_not_matching_and_method_and_url_and_content_matching PASSED [ 41%] tests/test_httpx_async.py::test_url_and_headers_not_matching_and_method_and_content_matching PASSED [ 41%] tests/test_httpx_async.py::test_method_and_url_and_headers_matching_and_content_not_matching PASSED [ 42%] tests/test_httpx_async.py::test_method_and_headers_matching_and_url_and_content_not_matching PASSED [ 42%] tests/test_httpx_async.py::test_method_and_url_matching_and_headers_and_content_not_matching PASSED [ 43%] tests/test_httpx_async.py::test_method_matching_and_url_and_headers_and_content_not_matching PASSED [ 43%] tests/test_httpx_async.py::test_method_and_url_and_headers_and_content_not_matching PASSED [ 44%] tests/test_httpx_async.py::test_header_as_str_tuple_list PASSED [ 44%] tests/test_httpx_async.py::test_header_as_bytes_tuple_list PASSED [ 45%] tests/test_httpx_async.py::test_header_as_bytes_dict PASSED [ 45%] tests/test_httpx_async.py::test_header_as_httpx_headers PASSED [ 46%] tests/test_httpx_async.py::test_elapsed_when_add_response PASSED [ 46%] tests/test_httpx_async.py::test_elapsed_when_add_callback PASSED [ 47%] tests/test_httpx_async.py::test_elapsed_when_add_async_callback PASSED [ 47%] tests/test_httpx_async.py::test_non_ascii_url_response PASSED [ 48%] tests/test_httpx_async.py::test_url_encoded_matching_response PASSED [ 48%] tests/test_httpx_async.py::test_reset_is_removing_requests PASSED [ 49%] tests/test_httpx_async.py::test_mutating_json PASSED [ 49%] tests/test_httpx_async.py::test_streams_are_not_cascading_resulting_in_maximum_recursion PASSED [ 50%] tests/test_httpx_async.py::test_custom_transport PASSED [ 50%] tests/test_httpx_sync.py::test_without_response PASSED [ 50%] tests/test_httpx_sync.py::test_default_response PASSED [ 51%] tests/test_httpx_sync.py::test_url_matching PASSED [ 51%] tests/test_httpx_sync.py::test_url_query_string_matching PASSED [ 52%] tests/test_httpx_sync.py::test_url_not_matching PASSED [ 52%] tests/test_httpx_sync.py::test_url_query_string_not_matching PASSED [ 53%] tests/test_httpx_sync.py::test_method_matching PASSED [ 53%] tests/test_httpx_sync.py::test_method_not_matching PASSED [ 54%] tests/test_httpx_sync.py::test_with_one_response PASSED [ 54%] tests/test_httpx_sync.py::test_response_with_string_body PASSED [ 55%] tests/test_httpx_sync.py::test_response_with_html_string_body PASSED [ 55%] tests/test_httpx_sync.py::test_url_not_matching_upper_case_headers_matching PASSED [ 56%] tests/test_httpx_sync.py::test_stream_response_streaming PASSED [ 56%] tests/test_httpx_sync.py::test_content_response_streaming PASSED [ 57%] tests/test_httpx_sync.py::test_text_response_streaming PASSED [ 57%] tests/test_httpx_sync.py::test_default_response_streaming PASSED [ 58%] tests/test_httpx_sync.py::test_with_many_responses PASSED [ 58%] tests/test_httpx_sync.py::test_with_many_responses_methods PASSED [ 59%] tests/test_httpx_sync.py::test_with_many_responses_status_codes PASSED [ 59%] tests/test_httpx_sync.py::test_with_many_responses_urls_str PASSED [ 60%] tests/test_httpx_sync.py::test_response_with_pattern_in_url PASSED [ 60%] tests/test_httpx_sync.py::test_request_with_pattern_in_url PASSED [ 61%] tests/test_httpx_sync.py::test_requests_with_pattern_in_url PASSED [ 61%] tests/test_httpx_sync.py::test_callback_with_pattern_in_url PASSED [ 62%] tests/test_httpx_sync.py::test_with_many_responses_urls_instances PASSED [ 62%] tests/test_httpx_sync.py::test_with_http_version_2 PASSED [ 62%] tests/test_httpx_sync.py::test_with_headers PASSED [ 63%] tests/test_httpx_sync.py::test_requests_retrieval PASSED [ 63%] tests/test_httpx_sync.py::test_requests_retrieval_on_same_url PASSED [ 64%] tests/test_httpx_sync.py::test_request_retrieval_on_same_url PASSED [ 64%] tests/test_httpx_sync.py::test_requests_retrieval_on_same_method PASSED [ 65%] tests/test_httpx_sync.py::test_request_retrieval_on_same_method PASSED [ 65%] tests/test_httpx_sync.py::test_requests_retrieval_on_same_url_and_method PASSED [ 66%] tests/test_httpx_sync.py::test_default_requests_retrieval PASSED [ 66%] tests/test_httpx_sync.py::test_default_request_retrieval PASSED [ 67%] tests/test_httpx_sync.py::test_requests_json_body PASSED [ 67%] tests/test_httpx_sync.py::test_callback_raising_exception PASSED [ 68%] tests/test_httpx_sync.py::test_request_exception_raising PASSED [ 68%] tests/test_httpx_sync.py::test_non_request_exception_raising PASSED [ 69%] tests/test_httpx_sync.py::test_callback_returning_response PASSED [ 69%] tests/test_httpx_sync.py::test_callback_executed_twice PASSED [ 70%] tests/test_httpx_sync.py::test_callback_registered_after_response PASSED [ 70%] tests/test_httpx_sync.py::test_response_registered_after_callback PASSED [ 71%] tests/test_httpx_sync.py::test_callback_matching_method PASSED [ 71%] tests/test_httpx_sync.py::test_request_retrieval_with_more_than_one PASSED [ 72%] tests/test_httpx_sync.py::test_headers_matching PASSED [ 72%] tests/test_httpx_sync.py::test_multi_value_headers_matching PASSED [ 73%] tests/test_httpx_sync.py::test_multi_value_headers_not_matching_single_value_issued PASSED [ 73%] tests/test_httpx_sync.py::test_multi_value_headers_not_matching_multi_value_issued PASSED [ 74%] tests/test_httpx_sync.py::test_headers_matching_respect_case PASSED [ 74%] tests/test_httpx_sync.py::test_headers_not_matching PASSED [ 75%] tests/test_httpx_sync.py::test_content_matching PASSED [ 75%] tests/test_httpx_sync.py::test_proxy_matching FAILED [ 75%] tests/test_httpx_sync.py::test_proxy_matching ERROR [ 75%] tests/test_httpx_sync.py::test_proxy_not_matching FAILED [ 76%] tests/test_httpx_sync.py::test_proxy_not_matching ERROR [ 76%] tests/test_httpx_sync.py::test_proxy_not_existing PASSED [ 76%] tests/test_httpx_sync.py::test_requests_retrieval_content_matching PASSED [ 77%] tests/test_httpx_sync.py::test_requests_retrieval_json_matching PASSED [ 77%] tests/test_httpx_sync.py::test_requests_retrieval_proxy_matching FAILED [ 78%] tests/test_httpx_sync.py::test_requests_retrieval_proxy_matching ERROR [ 78%] tests/test_httpx_sync.py::test_request_retrieval_proxy_matching FAILED [ 78%] tests/test_httpx_sync.py::test_request_retrieval_proxy_matching ERROR [ 78%] tests/test_httpx_sync.py::test_content_not_matching PASSED [ 79%] tests/test_httpx_sync.py::test_match_json_and_match_content_error PASSED [ 79%] tests/test_httpx_sync.py::test_json_matching PASSED [ 80%] tests/test_httpx_sync.py::test_json_partial_matching PASSED [ 80%] tests/test_httpx_sync.py::test_json_not_matching PASSED [ 81%] tests/test_httpx_sync.py::test_headers_and_json_not_matching PASSED [ 81%] tests/test_httpx_sync.py::test_match_json_invalid_json PASSED [ 82%] tests/test_httpx_sync.py::test_headers_and_content_matching PASSED [ 82%] tests/test_httpx_sync.py::test_headers_not_matching_and_content_matching PASSED [ 83%] tests/test_httpx_sync.py::test_headers_matching_and_content_not_matching PASSED [ 83%] tests/test_httpx_sync.py::test_headers_and_content_not_matching PASSED [ 84%] tests/test_httpx_sync.py::test_url_and_headers_and_content_matching PASSED [ 84%] tests/test_httpx_sync.py::test_headers_not_matching_and_url_and_content_matching PASSED [ 85%] tests/test_httpx_sync.py::test_url_and_headers_not_matching_and_content_matching PASSED [ 85%] tests/test_httpx_sync.py::test_url_and_headers_matching_and_content_not_matching PASSED [ 86%] tests/test_httpx_sync.py::test_headers_matching_and_url_and_content_not_matching PASSED [ 86%] tests/test_httpx_sync.py::test_url_matching_and_headers_and_content_not_matching PASSED [ 87%] tests/test_httpx_sync.py::test_url_and_headers_and_content_not_matching PASSED [ 87%] tests/test_httpx_sync.py::test_method_and_url_and_headers_and_content_matching PASSED [ 87%] tests/test_httpx_sync.py::test_headers_not_matching_and_method_and_url_and_content_matching PASSED [ 88%] tests/test_httpx_sync.py::test_url_and_headers_not_matching_and_method_and_content_matching PASSED [ 88%] tests/test_httpx_sync.py::test_method_and_url_and_headers_matching_and_content_not_matching PASSED [ 89%] tests/test_httpx_sync.py::test_method_and_headers_matching_and_url_and_content_not_matching PASSED [ 89%] tests/test_httpx_sync.py::test_method_and_url_matching_and_headers_and_content_not_matching PASSED [ 90%] tests/test_httpx_sync.py::test_method_matching_and_url_and_headers_and_content_not_matching PASSED [ 90%] tests/test_httpx_sync.py::test_method_and_url_and_headers_and_content_not_matching PASSED [ 91%] tests/test_httpx_sync.py::test_header_as_str_tuple_list PASSED [ 91%] tests/test_httpx_sync.py::test_header_as_bytes_tuple_list PASSED [ 92%] tests/test_httpx_sync.py::test_header_as_bytes_dict PASSED [ 92%] tests/test_httpx_sync.py::test_header_as_httpx_headers PASSED [ 93%] tests/test_httpx_sync.py::test_elapsed_when_add_response PASSED [ 93%] tests/test_httpx_sync.py::test_elapsed_when_add_callback PASSED [ 94%] tests/test_httpx_sync.py::test_non_ascii_url_response PASSED [ 94%] tests/test_httpx_sync.py::test_url_encoded_matching_response PASSED [ 95%] tests/test_httpx_sync.py::test_reset_is_removing_requests PASSED [ 95%] tests/test_httpx_sync.py::test_mutating_json PASSED [ 96%] tests/test_httpx_sync.py::test_custom_transport PASSED [ 96%] tests/test_plugin.py::test_fixture_is_available PASSED [ 97%] tests/test_plugin.py::test_httpx_mock_unused_response PASSED [ 97%] tests/test_plugin.py::test_httpx_mock_unused_response_without_assertion PASSED [ 98%] tests/test_plugin.py::test_httpx_mock_unused_callback PASSED [ 98%] tests/test_plugin.py::test_httpx_mock_unused_callback_without_assertion PASSED [ 99%] tests/test_plugin.py::test_httpx_mock_non_mocked_hosts_sync PASSED [ 99%] tests/test_plugin.py::test_httpx_mock_non_mocked_hosts_async PASSED [100%] ==================================== ERRORS ==================================== ___________________ ERROR at teardown of test_proxy_matching ___________________ monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x3fb689baa0> assert_all_responses_were_requested = True, non_mocked_hosts = [] @pytest.fixture def httpx_mock( monkeypatch: MonkeyPatch, assert_all_responses_were_requested: bool, non_mocked_hosts: List[str], ) -> Generator[HTTPXMock, None, None]: # Ensure redirections to www hosts are handled transparently. missing_www = [ f"www.{host}" for host in non_mocked_hosts if not host.startswith("www.") ] non_mocked_hosts += missing_www mock = HTTPXMock() # Mock synchronous requests real_handle_request = httpx.HTTPTransport.handle_request def mocked_handle_request( transport: httpx.HTTPTransport, request: httpx.Request ) -> httpx.Response: if request.url.host in non_mocked_hosts: return real_handle_request(transport, request) return mock._handle_request(transport, request) monkeypatch.setattr( httpx.HTTPTransport, "handle_request", mocked_handle_request, ) # Mock asynchronous requests real_handle_async_request = httpx.AsyncHTTPTransport.handle_async_request async def mocked_handle_async_request( transport: httpx.AsyncHTTPTransport, request: httpx.Request ) -> httpx.Response: if request.url.host in non_mocked_hosts: return await real_handle_async_request(transport, request) return await mock._handle_async_request(transport, request) monkeypatch.setattr( httpx.AsyncHTTPTransport, "handle_async_request", mocked_handle_async_request, ) yield mock > mock.reset(assert_all_responses_were_requested) ../../BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/__init__.py:76: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = assert_all_responses_were_requested = True def reset(self, assert_all_responses_were_requested: bool) -> None: self._requests.clear() not_called = self._reset_callbacks() if assert_all_responses_were_requested: matchers_description = "\n".join([str(matcher) for matcher in not_called]) > assert ( not not_called ), f"The following responses are mocked but not requested:\n{matchers_description}" E AssertionError: The following responses are mocked but not requested: E Match all requests with http://user:pwd@my_other_proxy/ proxy URL E assert not [] ../../BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/_httpx_mock.py:257: AssertionError _________________ ERROR at teardown of test_proxy_not_matching _________________ monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x3fb689ade0> assert_all_responses_were_requested = True, non_mocked_hosts = [] @pytest.fixture def httpx_mock( monkeypatch: MonkeyPatch, assert_all_responses_were_requested: bool, non_mocked_hosts: List[str], ) -> Generator[HTTPXMock, None, None]: # Ensure redirections to www hosts are handled transparently. missing_www = [ f"www.{host}" for host in non_mocked_hosts if not host.startswith("www.") ] non_mocked_hosts += missing_www mock = HTTPXMock() # Mock synchronous requests real_handle_request = httpx.HTTPTransport.handle_request def mocked_handle_request( transport: httpx.HTTPTransport, request: httpx.Request ) -> httpx.Response: if request.url.host in non_mocked_hosts: return real_handle_request(transport, request) return mock._handle_request(transport, request) monkeypatch.setattr( httpx.HTTPTransport, "handle_request", mocked_handle_request, ) # Mock asynchronous requests real_handle_async_request = httpx.AsyncHTTPTransport.handle_async_request async def mocked_handle_async_request( transport: httpx.AsyncHTTPTransport, request: httpx.Request ) -> httpx.Response: if request.url.host in non_mocked_hosts: return await real_handle_async_request(transport, request) return await mock._handle_async_request(transport, request) monkeypatch.setattr( httpx.AsyncHTTPTransport, "handle_async_request", mocked_handle_async_request, ) yield mock > mock.reset(assert_all_responses_were_requested) ../../BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/__init__.py:76: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = assert_all_responses_were_requested = True def reset(self, assert_all_responses_were_requested: bool) -> None: self._requests.clear() not_called = self._reset_callbacks() if assert_all_responses_were_requested: matchers_description = "\n".join([str(matcher) for matcher in not_called]) > assert ( not not_called ), f"The following responses are mocked but not requested:\n{matchers_description}" E AssertionError: The following responses are mocked but not requested: E Match all requests with http://my_test_proxy proxy URL E assert not [] ../../BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/_httpx_mock.py:257: AssertionError _________ ERROR at teardown of test_requests_retrieval_proxy_matching __________ monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x3fb68f54f0> assert_all_responses_were_requested = True, non_mocked_hosts = [] @pytest.fixture def httpx_mock( monkeypatch: MonkeyPatch, assert_all_responses_were_requested: bool, non_mocked_hosts: List[str], ) -> Generator[HTTPXMock, None, None]: # Ensure redirections to www hosts are handled transparently. missing_www = [ f"www.{host}" for host in non_mocked_hosts if not host.startswith("www.") ] non_mocked_hosts += missing_www mock = HTTPXMock() # Mock synchronous requests real_handle_request = httpx.HTTPTransport.handle_request def mocked_handle_request( transport: httpx.HTTPTransport, request: httpx.Request ) -> httpx.Response: if request.url.host in non_mocked_hosts: return real_handle_request(transport, request) return mock._handle_request(transport, request) monkeypatch.setattr( httpx.HTTPTransport, "handle_request", mocked_handle_request, ) # Mock asynchronous requests real_handle_async_request = httpx.AsyncHTTPTransport.handle_async_request async def mocked_handle_async_request( transport: httpx.AsyncHTTPTransport, request: httpx.Request ) -> httpx.Response: if request.url.host in non_mocked_hosts: return await real_handle_async_request(transport, request) return await mock._handle_async_request(transport, request) monkeypatch.setattr( httpx.AsyncHTTPTransport, "handle_async_request", mocked_handle_async_request, ) yield mock > mock.reset(assert_all_responses_were_requested) ../../BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/__init__.py:76: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = assert_all_responses_were_requested = True def reset(self, assert_all_responses_were_requested: bool) -> None: self._requests.clear() not_called = self._reset_callbacks() if assert_all_responses_were_requested: matchers_description = "\n".join([str(matcher) for matcher in not_called]) > assert ( not not_called ), f"The following responses are mocked but not requested:\n{matchers_description}" E AssertionError: The following responses are mocked but not requested: E Match all requests E assert not [] ../../BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/_httpx_mock.py:257: AssertionError __________ ERROR at teardown of test_request_retrieval_proxy_matching __________ monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x3fb68f6780> assert_all_responses_were_requested = True, non_mocked_hosts = [] @pytest.fixture def httpx_mock( monkeypatch: MonkeyPatch, assert_all_responses_were_requested: bool, non_mocked_hosts: List[str], ) -> Generator[HTTPXMock, None, None]: # Ensure redirections to www hosts are handled transparently. missing_www = [ f"www.{host}" for host in non_mocked_hosts if not host.startswith("www.") ] non_mocked_hosts += missing_www mock = HTTPXMock() # Mock synchronous requests real_handle_request = httpx.HTTPTransport.handle_request def mocked_handle_request( transport: httpx.HTTPTransport, request: httpx.Request ) -> httpx.Response: if request.url.host in non_mocked_hosts: return real_handle_request(transport, request) return mock._handle_request(transport, request) monkeypatch.setattr( httpx.HTTPTransport, "handle_request", mocked_handle_request, ) # Mock asynchronous requests real_handle_async_request = httpx.AsyncHTTPTransport.handle_async_request async def mocked_handle_async_request( transport: httpx.AsyncHTTPTransport, request: httpx.Request ) -> httpx.Response: if request.url.host in non_mocked_hosts: return await real_handle_async_request(transport, request) return await mock._handle_async_request(transport, request) monkeypatch.setattr( httpx.AsyncHTTPTransport, "handle_async_request", mocked_handle_async_request, ) yield mock > mock.reset(assert_all_responses_were_requested) ../../BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/__init__.py:76: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = assert_all_responses_were_requested = True def reset(self, assert_all_responses_were_requested: bool) -> None: self._requests.clear() not_called = self._reset_callbacks() if assert_all_responses_were_requested: matchers_description = "\n".join([str(matcher) for matcher in not_called]) > assert ( not not_called ), f"The following responses are mocked but not requested:\n{matchers_description}" E AssertionError: The following responses are mocked but not requested: E Match all requests E assert not [] ../../BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/_httpx_mock.py:257: AssertionError ___________________ ERROR at teardown of test_proxy_matching ___________________ monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x3fb659a750> assert_all_responses_were_requested = True, non_mocked_hosts = [] @pytest.fixture def httpx_mock( monkeypatch: MonkeyPatch, assert_all_responses_were_requested: bool, non_mocked_hosts: List[str], ) -> Generator[HTTPXMock, None, None]: # Ensure redirections to www hosts are handled transparently. missing_www = [ f"www.{host}" for host in non_mocked_hosts if not host.startswith("www.") ] non_mocked_hosts += missing_www mock = HTTPXMock() # Mock synchronous requests real_handle_request = httpx.HTTPTransport.handle_request def mocked_handle_request( transport: httpx.HTTPTransport, request: httpx.Request ) -> httpx.Response: if request.url.host in non_mocked_hosts: return real_handle_request(transport, request) return mock._handle_request(transport, request) monkeypatch.setattr( httpx.HTTPTransport, "handle_request", mocked_handle_request, ) # Mock asynchronous requests real_handle_async_request = httpx.AsyncHTTPTransport.handle_async_request async def mocked_handle_async_request( transport: httpx.AsyncHTTPTransport, request: httpx.Request ) -> httpx.Response: if request.url.host in non_mocked_hosts: return await real_handle_async_request(transport, request) return await mock._handle_async_request(transport, request) monkeypatch.setattr( httpx.AsyncHTTPTransport, "handle_async_request", mocked_handle_async_request, ) yield mock > mock.reset(assert_all_responses_were_requested) ../../BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/__init__.py:76: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = assert_all_responses_were_requested = True def reset(self, assert_all_responses_were_requested: bool) -> None: self._requests.clear() not_called = self._reset_callbacks() if assert_all_responses_were_requested: matchers_description = "\n".join([str(matcher) for matcher in not_called]) > assert ( not not_called ), f"The following responses are mocked but not requested:\n{matchers_description}" E AssertionError: The following responses are mocked but not requested: E Match all requests with http://user:pwd@my_other_proxy/ proxy URL E assert not [] ../../BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/_httpx_mock.py:257: AssertionError _________________ ERROR at teardown of test_proxy_not_matching _________________ monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x3fb65f0320> assert_all_responses_were_requested = True, non_mocked_hosts = [] @pytest.fixture def httpx_mock( monkeypatch: MonkeyPatch, assert_all_responses_were_requested: bool, non_mocked_hosts: List[str], ) -> Generator[HTTPXMock, None, None]: # Ensure redirections to www hosts are handled transparently. missing_www = [ f"www.{host}" for host in non_mocked_hosts if not host.startswith("www.") ] non_mocked_hosts += missing_www mock = HTTPXMock() # Mock synchronous requests real_handle_request = httpx.HTTPTransport.handle_request def mocked_handle_request( transport: httpx.HTTPTransport, request: httpx.Request ) -> httpx.Response: if request.url.host in non_mocked_hosts: return real_handle_request(transport, request) return mock._handle_request(transport, request) monkeypatch.setattr( httpx.HTTPTransport, "handle_request", mocked_handle_request, ) # Mock asynchronous requests real_handle_async_request = httpx.AsyncHTTPTransport.handle_async_request async def mocked_handle_async_request( transport: httpx.AsyncHTTPTransport, request: httpx.Request ) -> httpx.Response: if request.url.host in non_mocked_hosts: return await real_handle_async_request(transport, request) return await mock._handle_async_request(transport, request) monkeypatch.setattr( httpx.AsyncHTTPTransport, "handle_async_request", mocked_handle_async_request, ) yield mock > mock.reset(assert_all_responses_were_requested) ../../BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/__init__.py:76: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = assert_all_responses_were_requested = True def reset(self, assert_all_responses_were_requested: bool) -> None: self._requests.clear() not_called = self._reset_callbacks() if assert_all_responses_were_requested: matchers_description = "\n".join([str(matcher) for matcher in not_called]) > assert ( not not_called ), f"The following responses are mocked but not requested:\n{matchers_description}" E AssertionError: The following responses are mocked but not requested: E Match all requests with http://my_test_proxy proxy URL E assert not [] ../../BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/_httpx_mock.py:257: AssertionError _________ ERROR at teardown of test_requests_retrieval_proxy_matching __________ monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x3fb65f1400> assert_all_responses_were_requested = True, non_mocked_hosts = [] @pytest.fixture def httpx_mock( monkeypatch: MonkeyPatch, assert_all_responses_were_requested: bool, non_mocked_hosts: List[str], ) -> Generator[HTTPXMock, None, None]: # Ensure redirections to www hosts are handled transparently. missing_www = [ f"www.{host}" for host in non_mocked_hosts if not host.startswith("www.") ] non_mocked_hosts += missing_www mock = HTTPXMock() # Mock synchronous requests real_handle_request = httpx.HTTPTransport.handle_request def mocked_handle_request( transport: httpx.HTTPTransport, request: httpx.Request ) -> httpx.Response: if request.url.host in non_mocked_hosts: return real_handle_request(transport, request) return mock._handle_request(transport, request) monkeypatch.setattr( httpx.HTTPTransport, "handle_request", mocked_handle_request, ) # Mock asynchronous requests real_handle_async_request = httpx.AsyncHTTPTransport.handle_async_request async def mocked_handle_async_request( transport: httpx.AsyncHTTPTransport, request: httpx.Request ) -> httpx.Response: if request.url.host in non_mocked_hosts: return await real_handle_async_request(transport, request) return await mock._handle_async_request(transport, request) monkeypatch.setattr( httpx.AsyncHTTPTransport, "handle_async_request", mocked_handle_async_request, ) yield mock > mock.reset(assert_all_responses_were_requested) ../../BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/__init__.py:76: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = assert_all_responses_were_requested = True def reset(self, assert_all_responses_were_requested: bool) -> None: self._requests.clear() not_called = self._reset_callbacks() if assert_all_responses_were_requested: matchers_description = "\n".join([str(matcher) for matcher in not_called]) > assert ( not not_called ), f"The following responses are mocked but not requested:\n{matchers_description}" E AssertionError: The following responses are mocked but not requested: E Match all requests E assert not [] ../../BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/_httpx_mock.py:257: AssertionError __________ ERROR at teardown of test_request_retrieval_proxy_matching __________ monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x3fb6598710> assert_all_responses_were_requested = True, non_mocked_hosts = [] @pytest.fixture def httpx_mock( monkeypatch: MonkeyPatch, assert_all_responses_were_requested: bool, non_mocked_hosts: List[str], ) -> Generator[HTTPXMock, None, None]: # Ensure redirections to www hosts are handled transparently. missing_www = [ f"www.{host}" for host in non_mocked_hosts if not host.startswith("www.") ] non_mocked_hosts += missing_www mock = HTTPXMock() # Mock synchronous requests real_handle_request = httpx.HTTPTransport.handle_request def mocked_handle_request( transport: httpx.HTTPTransport, request: httpx.Request ) -> httpx.Response: if request.url.host in non_mocked_hosts: return real_handle_request(transport, request) return mock._handle_request(transport, request) monkeypatch.setattr( httpx.HTTPTransport, "handle_request", mocked_handle_request, ) # Mock asynchronous requests real_handle_async_request = httpx.AsyncHTTPTransport.handle_async_request async def mocked_handle_async_request( transport: httpx.AsyncHTTPTransport, request: httpx.Request ) -> httpx.Response: if request.url.host in non_mocked_hosts: return await real_handle_async_request(transport, request) return await mock._handle_async_request(transport, request) monkeypatch.setattr( httpx.AsyncHTTPTransport, "handle_async_request", mocked_handle_async_request, ) yield mock > mock.reset(assert_all_responses_were_requested) ../../BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/__init__.py:76: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = assert_all_responses_were_requested = True def reset(self, assert_all_responses_were_requested: bool) -> None: self._requests.clear() not_called = self._reset_callbacks() if assert_all_responses_were_requested: matchers_description = "\n".join([str(matcher) for matcher in not_called]) > assert ( not not_called ), f"The following responses are mocked but not requested:\n{matchers_description}" E AssertionError: The following responses are mocked but not requested: E Match all requests E assert not [] ../../BUILDROOT/python-pytest-httpx-0.29.0-1.fc40.noarch/usr/lib/python3.12/site-packages/pytest_httpx/_httpx_mock.py:257: AssertionError =================================== FAILURES =================================== _____________________________ test_proxy_matching ______________________________ httpx_mock = @pytest.mark.asyncio async def test_proxy_matching(httpx_mock: HTTPXMock) -> None: httpx_mock.add_response(proxy_url="http://user:pwd@my_other_proxy/") > async with httpx.AsyncClient(proxy="http://user:pwd@my_other_proxy") as client: E TypeError: AsyncClient.__init__() got an unexpected keyword argument 'proxy' tests/test_httpx_async.py:1236: TypeError ___________________________ test_proxy_not_matching ____________________________ httpx_mock = @pytest.mark.asyncio async def test_proxy_not_matching(httpx_mock: HTTPXMock) -> None: httpx_mock.add_response(proxy_url="http://my_test_proxy") > async with httpx.AsyncClient(proxy="http://my_test_proxy") as client: E TypeError: AsyncClient.__init__() got an unexpected keyword argument 'proxy' tests/test_httpx_async.py:1245: TypeError ____________________ test_requests_retrieval_proxy_matching ____________________ httpx_mock = @pytest.mark.asyncio async def test_requests_retrieval_proxy_matching(httpx_mock: HTTPXMock) -> None: httpx_mock.add_response() async with httpx.AsyncClient( mounts={ > "http://": httpx.AsyncHTTPTransport(proxy="http://my_test_proxy"), "https://": httpx.AsyncHTTPTransport( proxy="http://user:pwd@my_other_proxy" ), } ) as client: tests/test_httpx_async.py:1305: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , verify = True cert = None, http1 = True, http2 = False limits = Limits(max_connections=100, max_keepalive_connections=20, keepalive_expiry=5.0) trust_env = True, proxy = 'http://my_test_proxy', uds = None local_address = None, retries = 0, socket_options = None def __init__( self, verify: VerifyTypes = True, cert: typing.Optional[CertTypes] = None, http1: bool = True, http2: bool = False, limits: Limits = DEFAULT_LIMITS, trust_env: bool = True, proxy: typing.Optional[Proxy] = None, uds: typing.Optional[str] = None, local_address: typing.Optional[str] = None, retries: int = 0, socket_options: typing.Optional[typing.Iterable[SOCKET_OPTION]] = None, ) -> None: ssl_context = create_ssl_context(verify=verify, cert=cert, trust_env=trust_env) if proxy is None: self._pool = httpcore.AsyncConnectionPool( ssl_context=ssl_context, max_connections=limits.max_connections, max_keepalive_connections=limits.max_keepalive_connections, keepalive_expiry=limits.keepalive_expiry, http1=http1, http2=http2, uds=uds, local_address=local_address, retries=retries, socket_options=socket_options, ) > elif proxy.url.scheme in ("http", "https"): E AttributeError: 'str' object has no attribute 'url' /usr/lib/python3.12/site-packages/httpx/_transports/default.py:287: AttributeError ____________________ test_request_retrieval_proxy_matching _____________________ httpx_mock = @pytest.mark.asyncio async def test_request_retrieval_proxy_matching(httpx_mock: HTTPXMock) -> None: httpx_mock.add_response() async with httpx.AsyncClient( mounts={ > "http://": httpx.AsyncHTTPTransport(proxy="http://my_test_proxy"), "https://": httpx.AsyncHTTPTransport( proxy="http://user:pwd@my_other_proxy" ), } ) as client: tests/test_httpx_async.py:1326: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , verify = True cert = None, http1 = True, http2 = False limits = Limits(max_connections=100, max_keepalive_connections=20, keepalive_expiry=5.0) trust_env = True, proxy = 'http://my_test_proxy', uds = None local_address = None, retries = 0, socket_options = None def __init__( self, verify: VerifyTypes = True, cert: typing.Optional[CertTypes] = None, http1: bool = True, http2: bool = False, limits: Limits = DEFAULT_LIMITS, trust_env: bool = True, proxy: typing.Optional[Proxy] = None, uds: typing.Optional[str] = None, local_address: typing.Optional[str] = None, retries: int = 0, socket_options: typing.Optional[typing.Iterable[SOCKET_OPTION]] = None, ) -> None: ssl_context = create_ssl_context(verify=verify, cert=cert, trust_env=trust_env) if proxy is None: self._pool = httpcore.AsyncConnectionPool( ssl_context=ssl_context, max_connections=limits.max_connections, max_keepalive_connections=limits.max_keepalive_connections, keepalive_expiry=limits.keepalive_expiry, http1=http1, http2=http2, uds=uds, local_address=local_address, retries=retries, socket_options=socket_options, ) > elif proxy.url.scheme in ("http", "https"): E AttributeError: 'str' object has no attribute 'url' /usr/lib/python3.12/site-packages/httpx/_transports/default.py:287: AttributeError _____________________________ test_proxy_matching ______________________________ httpx_mock = def test_proxy_matching(httpx_mock: HTTPXMock) -> None: httpx_mock.add_response(proxy_url="http://user:pwd@my_other_proxy/") > with httpx.Client(proxy="http://user:pwd@my_other_proxy") as client: E TypeError: Client.__init__() got an unexpected keyword argument 'proxy' tests/test_httpx_sync.py:982: TypeError ___________________________ test_proxy_not_matching ____________________________ httpx_mock = def test_proxy_not_matching(httpx_mock: HTTPXMock) -> None: httpx_mock.add_response(proxy_url="http://my_test_proxy") > with httpx.Client(proxy="http://my_test_proxy") as client: E TypeError: Client.__init__() got an unexpected keyword argument 'proxy' tests/test_httpx_sync.py:990: TypeError ____________________ test_requests_retrieval_proxy_matching ____________________ httpx_mock = def test_requests_retrieval_proxy_matching(httpx_mock: HTTPXMock) -> None: httpx_mock.add_response() with httpx.Client( mounts={ > "http://": httpx.HTTPTransport(proxy="http://my_test_proxy"), "https://": httpx.HTTPTransport(proxy="http://user:pwd@my_other_proxy"), } ) as client: tests/test_httpx_sync.py:1046: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , verify = True, cert = None http1 = True, http2 = False limits = Limits(max_connections=100, max_keepalive_connections=20, keepalive_expiry=5.0) trust_env = True, proxy = 'http://my_test_proxy', uds = None local_address = None, retries = 0, socket_options = None def __init__( self, verify: VerifyTypes = True, cert: typing.Optional[CertTypes] = None, http1: bool = True, http2: bool = False, limits: Limits = DEFAULT_LIMITS, trust_env: bool = True, proxy: typing.Optional[Proxy] = None, uds: typing.Optional[str] = None, local_address: typing.Optional[str] = None, retries: int = 0, socket_options: typing.Optional[typing.Iterable[SOCKET_OPTION]] = None, ) -> None: ssl_context = create_ssl_context(verify=verify, cert=cert, trust_env=trust_env) if proxy is None: self._pool = httpcore.ConnectionPool( ssl_context=ssl_context, max_connections=limits.max_connections, max_keepalive_connections=limits.max_keepalive_connections, keepalive_expiry=limits.keepalive_expiry, http1=http1, http2=http2, uds=uds, local_address=local_address, retries=retries, socket_options=socket_options, ) > elif proxy.url.scheme in ("http", "https"): E AttributeError: 'str' object has no attribute 'url' /usr/lib/python3.12/site-packages/httpx/_transports/default.py:148: AttributeError ____________________ test_request_retrieval_proxy_matching _____________________ httpx_mock = def test_request_retrieval_proxy_matching(httpx_mock: HTTPXMock) -> None: httpx_mock.add_response() with httpx.Client( mounts={ > "http://": httpx.HTTPTransport(proxy="http://my_test_proxy"), "https://": httpx.HTTPTransport(proxy="http://user:pwd@my_other_proxy"), } ) as client: tests/test_httpx_sync.py:1064: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , verify = True, cert = None http1 = True, http2 = False limits = Limits(max_connections=100, max_keepalive_connections=20, keepalive_expiry=5.0) trust_env = True, proxy = 'http://my_test_proxy', uds = None local_address = None, retries = 0, socket_options = None def __init__( self, verify: VerifyTypes = True, cert: typing.Optional[CertTypes] = None, http1: bool = True, http2: bool = False, limits: Limits = DEFAULT_LIMITS, trust_env: bool = True, proxy: typing.Optional[Proxy] = None, uds: typing.Optional[str] = None, local_address: typing.Optional[str] = None, retries: int = 0, socket_options: typing.Optional[typing.Iterable[SOCKET_OPTION]] = None, ) -> None: ssl_context = create_ssl_context(verify=verify, cert=cert, trust_env=trust_env) if proxy is None: self._pool = httpcore.ConnectionPool( ssl_context=ssl_context, max_connections=limits.max_connections, max_keepalive_connections=limits.max_keepalive_connections, keepalive_expiry=limits.keepalive_expiry, http1=http1, http2=http2, uds=uds, local_address=local_address, retries=retries, socket_options=socket_options, ) > elif proxy.url.scheme in ("http", "https"): E AttributeError: 'str' object has no attribute 'url' /usr/lib/python3.12/site-packages/httpx/_transports/default.py:148: AttributeError =========================== short test summary info ============================ FAILED tests/test_httpx_async.py::test_proxy_matching - TypeError: AsyncClien... FAILED tests/test_httpx_async.py::test_proxy_not_matching - TypeError: AsyncC... FAILED tests/test_httpx_async.py::test_requests_retrieval_proxy_matching - At... FAILED tests/test_httpx_async.py::test_request_retrieval_proxy_matching - Att... FAILED tests/test_httpx_sync.py::test_proxy_matching - TypeError: Client.__in... FAILED tests/test_httpx_sync.py::test_proxy_not_matching - TypeError: Client.... FAILED tests/test_httpx_sync.py::test_requests_retrieval_proxy_matching - Att... FAILED tests/test_httpx_sync.py::test_request_retrieval_proxy_matching - Attr... ERROR tests/test_httpx_async.py::test_proxy_matching - AssertionError: The fo... ERROR tests/test_httpx_async.py::test_proxy_not_matching - AssertionError: Th... ERROR tests/test_httpx_async.py::test_requests_retrieval_proxy_matching - Ass... ERROR tests/test_httpx_async.py::test_request_retrieval_proxy_matching - Asse... ERROR tests/test_httpx_sync.py::test_proxy_matching - AssertionError: The fol... ERROR tests/test_httpx_sync.py::test_proxy_not_matching - AssertionError: The... ERROR tests/test_httpx_sync.py::test_requests_retrieval_proxy_matching - Asse... ERROR tests/test_httpx_sync.py::test_request_retrieval_proxy_matching - Asser... =================== 8 failed, 200 passed, 8 errors in 22.30s =================== error: Bad exit status from /var/tmp/rpm-tmp.eL3Xmo (%check) Bad exit status from /var/tmp/rpm-tmp.eL3Xmo (%check) RPM build errors: Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-httpx.spec'\n", 1)] Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-pytest-httpx.spec'