Diff of the two buildlogs: -- --- b1/build.log 2025-01-10 02:52:14.042757772 +0000 +++ b2/build.log 2025-01-10 02:54:58.995240629 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu Jan 9 14:34:52 -12 2025 -I: pbuilder-time-stamp: 1736476492 +I: Current time: Thu Feb 12 23:15:16 +14 2026 +I: pbuilder-time-stamp: 1770887716 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -25,52 +25,84 @@ dpkg-source: info: applying 020_fix-sufix_versions.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2959779/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/263293/tmp/hooks/D01_modify_environment starting +debug: Running on ionos15-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Feb 12 09:15 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/263293/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/263293/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=20 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='471b6a6500304b5ea10fb6eb07118deb' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='2959779' - PS1='# ' - PS2='> ' + INVOCATION_ID=7db2582abf2347f58342886315df2944 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=263293 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.qeXNtoIo/pbuilderrc_XLCt --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.qeXNtoIo/b1 --logfile b1/build.log python-pook_2.1.3-1.dsc' - SUDO_GID='111' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://46.16.76.132:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.qeXNtoIo/pbuilderrc_KQDx --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.qeXNtoIo/b2 --logfile b2/build.log python-pook_2.1.3-1.dsc' + SUDO_GID=111 + SUDO_UID=106 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://213.165.73.152:3128 I: uname -a - Linux ionos11-amd64 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.11.10+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.11.10-1~bpo12+1 (2024-12-19) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/2959779/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/263293/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -304,7 +336,7 @@ Get: 162 http://deb.debian.org/debian unstable/main amd64 python3-sphinxcontrib.jquery all 4.1-5 [7348 B] Get: 163 http://deb.debian.org/debian unstable/main amd64 python3-sphinx-rtd-theme all 3.0.2+dfsg-1 [29.5 kB] Get: 164 http://deb.debian.org/debian unstable/main amd64 python3-xmltodict all 0.13.0-1 [16.7 kB] -Fetched 56.1 MB in 4s (13.6 MB/s) +Fetched 56.1 MB in 5s (10.8 MB/s) Preconfiguring packages ... Selecting previously unselected package fonts-lato. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19848 files and directories currently installed.) @@ -836,8 +868,8 @@ Setting up tzdata (2024b-5) ... Current default time zone: 'Etc/UTC' -Local time is now: Fri Jan 10 02:37:51 UTC 2025. -Universal Time is now: Fri Jan 10 02:37:51 UTC 2025. +Local time is now: Thu Feb 12 09:16:16 UTC 2026. +Universal Time is now: Thu Feb 12 09:16:16 UTC 2026. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20220109.1) ... @@ -999,7 +1031,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/python-pook-2.1.3/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../python-pook_2.1.3-1_source.changes +I: user script /srv/workspace/pbuilder/263293/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/263293/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/python-pook-2.1.3/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../python-pook_2.1.3-1_source.changes dpkg-buildpackage: info: source package python-pook dpkg-buildpackage: info: source version 2.1.3-1 dpkg-buildpackage: info: source distribution unstable @@ -1054,9 +1090,9 @@ preparing documents... done copying assets... copying static files... +Writing evaluated template result to /build/reproducible-path/python-pook-2.1.3/build/html/_static/documentation_options.js Writing evaluated template result to /build/reproducible-path/python-pook-2.1.3/build/html/_static/language_data.js Writing evaluated template result to /build/reproducible-path/python-pook-2.1.3/build/html/_static/basic.css -Writing evaluated template result to /build/reproducible-path/python-pook-2.1.3/build/html/_static/documentation_options.js Writing evaluated template result to /build/reproducible-path/python-pook-2.1.3/build/html/_static/js/versions.js copying static files: done copying extra files... @@ -1101,11 +1137,11 @@ platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 rootdir: /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build configfile: pyproject.toml -plugins: pook-2.1.3, anyio-4.7.0, typeguard-4.4.1, cov-5.0.0, httpbin-2.1.0 +plugins: pook-2.1.3, httpbin-2.1.0, cov-5.0.0, typeguard-4.4.1, anyio-4.7.0 collected 232 items tests/integration/engines_test.py .. [ 0%] -tests/integration/examples_test.py .........FFFF.F......F. [ 10%] +tests/integration/examples_test.py F.....F...F...F..F.F... [ 10%] tests/integration/pook_requests_test.py FFF [ 12%] tests/unit/api_test.py ......s [ 15%] tests/unit/engine_test.py .. [ 15%] @@ -1125,9 +1161,9 @@ tests/unit/regex_test.py .. [100%] =================================== FAILURES =================================== -_____________________ test_examples[network_mode_httpx.py] _____________________ +_______________________ test_examples[aiohttp_client.py] _______________________ -example = 'network_mode_httpx.py' +example = 'aiohttp_client.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -1136,81 +1172,27 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/network_mode_httpx.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/aiohttp_client.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError ------------------------------ Captured stdout call ----------------------------- -Mock status: 201 ----------------------------- Captured stderr call ----------------------------- +/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py:30: DeprecationWarning: There is no current event loop + loop = asyncio.get_event_loop() Traceback (most recent call last): - File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 72, in map_httpcore_exceptions - yield - File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 236, in handle_request - resp = self._pool.handle_request(req) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request - raise exc from None - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request - response = connection.handle_request( - ^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 101, in handle_request - raise exc - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 78, in handle_request - stream = self._connect(request) - ^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 124, in _connect - stream = self._network_backend.connect_tcp(**kwargs) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpcore/_backends/sync.py", line 207, in connect_tcp - with map_exceptions(exc_map): - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3.12/contextlib.py", line 158, in __exit__ - self.gen.throw(value) - File "/usr/lib/python3/dist-packages/httpcore/_exceptions.py", line 14, in map_exceptions - raise to_exc(exc) from exc -httpcore.ConnectError: [Errno -3] Temporary failure in name resolution - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/network_mode_httpx.py", line 22, in - res = httpx.get("http://httpbin.org/ip") - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_api.py", line 210, in get - return request( - ^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_api.py", line 118, in request - return client.request( + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py", line 31, in + loop.run_until_complete(main(loop)) + File "/usr/lib/python3.12/asyncio/base_events.py", line 686, in run_until_complete + return future.result() ^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 837, in request - return self.send(request, auth=auth, follow_redirects=follow_redirects) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 926, in send - response = self._send_handling_auth( - ^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 954, in _send_handling_auth - response = self._send_handling_redirects( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 991, in _send_handling_redirects - response = self._send_single_request(request) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 1027, in _send_single_request - response = transport.handle_request(request) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/_httpx.py", line 141, in handle_request - return transport.handle_request(request) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 235, in handle_request - with map_httpcore_exceptions(): + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py", line 28, in main + await fetch(session, "http://httpbin.org/ip", bytearray("foo bar", "utf-8")) + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py", line 10, in fetch + with async_timeout.timeout(10): ^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3.12/contextlib.py", line 158, in __exit__ - self.gen.throw(value) - File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions - raise mapped_exc(message) from exc -httpx.ConnectError: [Errno -3] Temporary failure in name resolution -________________________ test_examples[network_mode.py] ________________________ +TypeError: 'Timeout' object does not support the context manager protocol +_________________________ test_examples[decorators.py] _________________________ -example = 'network_mode.py' +example = 'decorators.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -1219,11 +1201,14 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/network_mode.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/decorators.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError ----------------------------- Captured stdout call ----------------------------- -Mock status: 201 +#1 status: 200 +#2 status: 204 +Is done: True +Pending mocks: [] ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 199, in _new_conn @@ -1258,7 +1243,7 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn raise NameResolutionError(self.host, self, e) from e -urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) +urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) The above exception was the direct cause of the following exception: @@ -1266,32 +1251,20 @@ File "/usr/lib/python3/dist-packages/requests/adapters.py", line 667, in send resp = conn.urlopen( ^^^^^^^^^^^^^ - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 175, in handler - return self._on_request( - ^^^^^^^^^^^^^^^^^ - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request - return urlopen(pool, method, url, body=body, headers=headers, **kw) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 175, in handler - return self._on_request( - ^^^^^^^^^^^^^^^^^ - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request - return urlopen(pool, method, url, body=body, headers=headers, **kw) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 843, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) During handling of the above exception, another exception occurred: Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/network_mode.py", line 22, in - res = requests.get("http://httpbin.org/ip") - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/decorators.py", line 26, in + res = requests.get("http://httpbin.org/status/400") + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/requests/api.py", line 73, in get return request("get", url, params=params, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1306,10 +1279,10 @@ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send raise ConnectionError(e, request=request) -requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) -_________________________ test_examples[decorators.py] _________________________ +requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +________________________ test_examples[network_mode.py] ________________________ -example = 'decorators.py' +example = 'network_mode.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -1318,14 +1291,11 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/decorators.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/network_mode.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError ----------------------------- Captured stdout call ----------------------------- -#1 status: 200 -#2 status: 204 -Is done: True -Pending mocks: [] +Mock status: 201 ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 199, in _new_conn @@ -1360,7 +1330,7 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn raise NameResolutionError(self.host, self, e) from e -urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) +urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) The above exception was the direct cause of the following exception: @@ -1368,20 +1338,32 @@ File "/usr/lib/python3/dist-packages/requests/adapters.py", line 667, in send resp = conn.urlopen( ^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 175, in handler + return self._on_request( + ^^^^^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request + return urlopen(pool, method, url, body=body, headers=headers, **kw) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 175, in handler + return self._on_request( + ^^^^^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request + return urlopen(pool, method, url, body=body, headers=headers, **kw) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 843, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) During handling of the above exception, another exception occurred: Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/decorators.py", line 26, in - res = requests.get("http://httpbin.org/status/400") - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/network_mode.py", line 22, in + res = requests.get("http://httpbin.org/ip") + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/requests/api.py", line 73, in get return request("get", url, params=params, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1396,7 +1378,7 @@ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send raise ConnectionError(e, request=request) -requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) _______________________ test_examples[urllib3_client.py] _______________________ example = 'urllib3_client.py' @@ -1447,7 +1429,7 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn raise NameResolutionError(self.host, self, e) from e -urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) +urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) The above exception was the direct cause of the following exception: @@ -1479,10 +1461,10 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/404 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) -_______________________ test_examples[aiohttp_client.py] _______________________ +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/404 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +_____________________ test_examples[network_mode_httpx.py] _____________________ -example = 'aiohttp_client.py' +example = 'network_mode_httpx.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -1491,24 +1473,78 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/aiohttp_client.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/network_mode_httpx.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError +----------------------------- Captured stdout call ----------------------------- +Mock status: 201 ----------------------------- Captured stderr call ----------------------------- -/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py:30: DeprecationWarning: There is no current event loop - loop = asyncio.get_event_loop() Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py", line 31, in - loop.run_until_complete(main(loop)) - File "/usr/lib/python3.12/asyncio/base_events.py", line 686, in run_until_complete - return future.result() + File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 72, in map_httpcore_exceptions + yield + File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 236, in handle_request + resp = self._pool.handle_request(req) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request + raise exc from None + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request + response = connection.handle_request( + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 101, in handle_request + raise exc + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 78, in handle_request + stream = self._connect(request) + ^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 124, in _connect + stream = self._network_backend.connect_tcp(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpcore/_backends/sync.py", line 207, in connect_tcp + with map_exceptions(exc_map): + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.12/contextlib.py", line 158, in __exit__ + self.gen.throw(value) + File "/usr/lib/python3/dist-packages/httpcore/_exceptions.py", line 14, in map_exceptions + raise to_exc(exc) from exc +httpcore.ConnectError: [Errno -3] Temporary failure in name resolution + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/network_mode_httpx.py", line 22, in + res = httpx.get("http://httpbin.org/ip") + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_api.py", line 210, in get + return request( + ^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_api.py", line 118, in request + return client.request( ^^^^^^^^^^^^^^^ - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py", line 28, in main - await fetch(session, "http://httpbin.org/ip", bytearray("foo bar", "utf-8")) - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py", line 10, in fetch - with async_timeout.timeout(10): + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 837, in request + return self.send(request, auth=auth, follow_redirects=follow_redirects) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 926, in send + response = self._send_handling_auth( + ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 954, in _send_handling_auth + response = self._send_handling_redirects( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 991, in _send_handling_redirects + response = self._send_single_request(request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 1027, in _send_single_request + response = transport.handle_request(request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/_httpx.py", line 141, in handle_request + return transport.handle_request(request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 235, in handle_request + with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ -TypeError: 'Timeout' object does not support the context manager protocol + File "/usr/lib/python3.12/contextlib.py", line 158, in __exit__ + self.gen.throw(value) + File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions + raise mapped_exc(message) from exc +httpx.ConnectError: [Errno -3] Temporary failure in name resolution ____________________ test_examples[mock_context_manager.py] ____________________ example = 'mock_context_manager.py' @@ -1571,7 +1607,7 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn raise NameResolutionError(self.host, self, e) from e -urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) +urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) The above exception was the direct cause of the following exception: @@ -1585,7 +1621,7 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) During handling of the above exception, another exception occurred: @@ -1607,10 +1643,10 @@ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send raise ConnectionError(e, request=request) -requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) ______________________________ test_requests_get _______________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -1658,7 +1694,7 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET', url = '/', body = None headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -1896,7 +1932,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -1912,13 +1948,13 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -2000,9 +2036,9 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET', url = '/', response = None -error = NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)") -_pool = -_stacktrace = +error = NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)") +_pool = +_stacktrace = def increment( self, @@ -2096,7 +2132,7 @@ if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] -E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError @@ -2120,7 +2156,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -2214,12 +2250,12 @@ raise SSLError(e, request=request) > raise ConnectionError(e, request=request) -E requests.exceptions.ConnectionError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) +E requests.exceptions.ConnectionError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/requests/adapters.py:700: ConnectionError ___________________________ test_requests_match_url ____________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -2267,7 +2303,7 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET', url = '/', body = None headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -2505,7 +2541,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -2521,13 +2557,13 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -2609,9 +2645,9 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET', url = '/', response = None -error = NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)") -_pool = -_stacktrace = +error = NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)") +_pool = +_stacktrace = def increment( self, @@ -2705,7 +2741,7 @@ if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] -E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError @@ -2729,7 +2765,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -2823,12 +2859,12 @@ raise SSLError(e, request=request) > raise ConnectionError(e, request=request) -E requests.exceptions.ConnectionError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) +E requests.exceptions.ConnectionError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/requests/adapters.py:700: ConnectionError _______________________ test_requests_match_query_params _______________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -2876,7 +2912,7 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET', url = '/?foo=bar', body = None headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -3114,7 +3150,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -3130,13 +3166,13 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -3218,9 +3254,9 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET', url = '/?foo=bar', response = None -error = NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)") -_pool = -_stacktrace = +error = NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)") +_pool = +_stacktrace = def increment( self, @@ -3314,7 +3350,7 @@ if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] -E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: /?foo=bar (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: /?foo=bar (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError @@ -3338,7 +3374,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -3432,13 +3468,13 @@ raise SSLError(e, request=request) > raise ConnectionError(e, request=request) -E requests.exceptions.ConnectionError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: /?foo=bar (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) +E requests.exceptions.ConnectionError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: /?foo=bar (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/requests/adapters.py:700: ConnectionError _________________ TestStandardAiohttp.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -3452,12 +3488,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:47] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' -url_500 = 'http://127.0.0.1:38793/status/500' +self = +url_404 = 'http://127.0.0.1:36845/status/404' +url_500 = 'http://127.0.0.1:36845/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -3477,12 +3513,12 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:47] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [09/Jan/2025 14:46:47] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardAiohttp.test_network_mode_hostname ________________ -self = -req = +self = +req = traces = [] timeout = ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=30, ceil_threshold=5) @@ -3554,8 +3590,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:38793/status/401' +self = +url_401 = 'http://127.0.0.1:36845/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -3591,8 +3627,8 @@ _, proto = await self._create_direct_connection(req, traces, timeout) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -req = +self = +req = traces = [] timeout = ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=30, ceil_threshold=5) @@ -3631,11 +3667,11 @@ /usr/lib/python3/dist-packages/aiohttp/connector.py:1341: ClientConnectorDNSError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:48] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardAiohttp.test_multiple_network_filters _______________ -self = -url_401 = 'http://127.0.0.1:38793/status/401' +self = +url_401 = 'http://127.0.0.1:36845/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -3671,13 +3707,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:50] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:46:50] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:46:51] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardAiohttp.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -3694,11 +3730,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -3713,11 +3749,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAiohttp.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -3735,11 +3771,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardAiohttp.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -3756,11 +3792,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAiohttp.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -3774,11 +3810,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardAiohttp.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -3793,11 +3829,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAiohttp.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -3813,11 +3849,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAiohttp.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -3829,11 +3865,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -3847,12 +3883,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_network_mode ___________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' -url_500 = 'http://127.0.0.1:38793/status/500' +self = +url_404 = 'http://127.0.0.1:36845/status/404' +url_500 = 'http://127.0.0.1:36845/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -3872,8 +3908,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:52] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [09/Jan/2025 14:46:53] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAsyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -3919,8 +3955,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:38793/status/401' +self = +url_401 = 'http://127.0.0.1:36845/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -3989,11 +4025,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:53] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardAsyncHttpx.test_multiple_network_filters _____________ -self = -url_401 = 'http://127.0.0.1:38793/status/401' +self = +url_401 = 'http://127.0.0.1:36845/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -4029,13 +4065,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:55] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:46:56] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:46:56] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardAsyncHttpx.test_json_request ___________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -4052,11 +4088,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:57] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 __________________ TestStandardAsyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -4071,11 +4107,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:57] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAsyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -4093,11 +4129,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:57] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -4114,11 +4150,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:58] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAsyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -4132,11 +4168,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:58] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -4151,11 +4187,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:59] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_mutli_value_response_headers ___________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -4171,11 +4207,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:46:59] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -4187,11 +4223,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:00] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -4205,12 +4241,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:00] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' -url_500 = 'http://127.0.0.1:38793/status/500' +self = +url_404 = 'http://127.0.0.1:36845/status/404' +url_500 = 'http://127.0.0.1:36845/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -4230,8 +4266,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:01] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [09/Jan/2025 14:47:01] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:25] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardSyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -4275,8 +4311,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:38793/status/401' +self = +url_401 = 'http://127.0.0.1:36845/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -4343,11 +4379,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:01] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardSyncHttpx.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:38793/status/401' +self = +url_401 = 'http://127.0.0.1:36845/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -4383,13 +4419,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:03] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:47:04] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:47:04] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardSyncHttpx.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -4406,11 +4442,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:04] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -4425,11 +4461,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:05] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardSyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -4447,11 +4483,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:05] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardSyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -4468,11 +4504,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:06] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardSyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -4486,11 +4522,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:06] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -4505,11 +4541,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardSyncHttpx.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -4525,11 +4561,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardSyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -4541,10 +4577,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:08] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_sync ___________________________________ -URL = 'http://127.0.0.1:38793/status/404' +URL = 'http://127.0.0.1:36845/status/404' def test_sync(URL): pook.get(URL).times(1).reply(200).body("123") @@ -4557,10 +4593,10 @@ tests/unit/interceptors/httpx_test.py:43: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:08] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_json ___________________________________ -URL = 'http://127.0.0.1:38793/status/404' +URL = 'http://127.0.0.1:36845/status/404' def test_json(URL): ( @@ -4579,10 +4615,10 @@ tests/unit/interceptors/httpx_test.py:67: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:08] "POST /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "POST /status/404 HTTP/1.1" 404 0 __________________________ test_streaming[iter_bytes] __________________________ -URL = 'http://127.0.0.1:38793/status/404', response_method = 'iter_bytes' +URL = 'http://127.0.0.1:36845/status/404', response_method = 'iter_bytes' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -4599,10 +4635,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_streaming[iter_raw] ___________________________ -URL = 'http://127.0.0.1:38793/status/404', response_method = 'iter_raw' +URL = 'http://127.0.0.1:36845/status/404', response_method = 'iter_raw' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -4619,10 +4655,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_redirect_following ____________________________ -URL = 'http://127.0.0.1:38793/status/404' +URL = 'http://127.0.0.1:36845/status/404' def test_redirect_following(URL): urls = [URL, f"{URL}/redirected", f"{URL}/redirected_again"] @@ -4640,11 +4676,11 @@ tests/unit/interceptors/httpx_test.py:93: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -4658,12 +4694,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' -url_500 = 'http://127.0.0.1:38793/status/500' +self = +url_404 = 'http://127.0.0.1:36845/status/404' +url_500 = 'http://127.0.0.1:36845/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -4683,11 +4719,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:10] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [09/Jan/2025 14:47:10] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardUrllib3.test_network_mode_hostname ________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -4735,7 +4771,7 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET', url = '/', body = None, headers = {} retries = Retry(total=0, connect=None, read=None, redirect=None, status=None) redirect = False, assert_same_host = False, timeout = <_TYPE_DEFAULT.token: -1> @@ -4971,7 +5007,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -4987,14 +5023,14 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:38793/status/401' +self = +url_401 = 'http://127.0.0.1:36845/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -5036,9 +5072,9 @@ self = Retry(total=0, connect=None, read=None, redirect=None, status=None) method = 'GET', url = '/', response = None -error = NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)") -_pool = -_stacktrace = +error = NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)") +_pool = +_stacktrace = def increment( self, @@ -5132,19 +5168,19 @@ if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] -E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:10] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/401 HTTP/1.1" 401 0 ------------------------------ Captured log call ------------------------------- -WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / -WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / -WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / +WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / +WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / +WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / ______________ TestStandardUrllib3.test_multiple_network_filters _______________ -self = -url_401 = 'http://127.0.0.1:38793/status/401' +self = +url_401 = 'http://127.0.0.1:36845/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -5180,13 +5216,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:12] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:47:12] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:47:12] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardUrllib3.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -5203,11 +5239,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -5222,11 +5258,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardUrllib3.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -5244,11 +5280,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardUrllib3.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -5265,11 +5301,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardUrllib3.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -5283,11 +5319,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -5302,11 +5338,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardUrllib3.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -5322,11 +5358,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardUrllib3.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -5338,11 +5374,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -5356,12 +5392,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' -url_500 = 'http://127.0.0.1:38793/status/500' +self = +url_404 = 'http://127.0.0.1:36845/status/404' +url_500 = 'http://127.0.0.1:36845/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -5381,11 +5417,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:13] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [09/Jan/2025 14:47:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardRequests.test_network_mode_hostname ________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -5433,7 +5469,7 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET', url = '/', body = None headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -5671,7 +5707,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -5687,13 +5723,13 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -5775,9 +5811,9 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET', url = '/', response = None -error = NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)") -_pool = -_stacktrace = +error = NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)") +_pool = +_stacktrace = def increment( self, @@ -5871,14 +5907,14 @@ if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] -E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url_401 = 'http://127.0.0.1:38793/status/401' +self = +url_401 = 'http://127.0.0.1:36845/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -5910,7 +5946,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -6004,15 +6040,15 @@ raise SSLError(e, request=request) > raise ConnectionError(e, request=request) -E requests.exceptions.ConnectionError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) +E requests.exceptions.ConnectionError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/requests/adapters.py:700: ConnectionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:13] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:26] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardRequests.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:38793/status/401' +self = +url_401 = 'http://127.0.0.1:36845/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -6048,13 +6084,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:14] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:47:14] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:47:14] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardRequests.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -6071,11 +6107,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:14] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardRequests.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -6090,11 +6126,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:14] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardRequests.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -6112,11 +6148,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:14] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -6133,11 +6169,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:14] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardRequests.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -6151,11 +6187,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:15] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -6170,11 +6206,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:15] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -6190,11 +6226,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:15] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -6206,10 +6242,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:15] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/404 HTTP/1.1" 404 0 ____________________________ test_post_with_headers ____________________________ -URL = 'http://127.0.0.1:38793/foo' +URL = 'http://127.0.0.1:36845/foo' @pytest.mark.pook def test_post_with_headers(URL): @@ -6218,15 +6254,15 @@ resp = http.request("POST", URL) > assert resp.status == 200 E assert 404 == 200 -E + where 404 = .status +E + where 404 = .status tests/unit/interceptors/urllib3_test.py:112: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:15] "POST /foo HTTP/1.1" 404 207 +127.0.0.1 - - [12/Feb/2026 23:17:27] "POST /foo HTTP/1.1" 404 207 _____________________ TestUrllib.test_activate_deactivate ______________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -6240,12 +6276,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:15] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_network_mode _________________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' -url_500 = 'http://127.0.0.1:38793/status/500' +self = +url_404 = 'http://127.0.0.1:36845/status/404' +url_500 = 'http://127.0.0.1:36845/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -6265,14 +6301,14 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:15] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [09/Jan/2025 14:47:15] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestUrllib.test_network_mode_hostname _____________________ -self = +self = http_class = -req = , http_conn_args = {} -host = 'example.com', h = +req = , http_conn_args = {} +host = 'example.com', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.12'} def do_open(self, http_class, req, **http_conn_args): @@ -6364,8 +6400,8 @@ During handling of the above exception, another exception occurred: -self = -url_401 = 'http://127.0.0.1:38793/status/401' +self = +url_401 = 'http://127.0.0.1:36845/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -6401,10 +6437,10 @@ return self.do_open(http.client.HTTPConnection, req) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = http_class = -req = , http_conn_args = {} -host = 'example.com', h = +req = , http_conn_args = {} +host = 'example.com', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.12'} def do_open(self, http_class, req, **http_conn_args): @@ -6456,11 +6492,11 @@ /usr/lib/python3.12/urllib/request.py:1347: URLError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:15] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestUrllib.test_multiple_network_filters ___________________ -self = -url_401 = 'http://127.0.0.1:38793/status/401' +self = +url_401 = 'http://127.0.0.1:36845/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -6496,13 +6532,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:18] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:47:18] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:47:18] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/401 HTTP/1.1" 401 0 _________________________ TestUrllib.test_json_request _________________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -6519,11 +6555,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:18] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/404 HTTP/1.1" 404 0 ________________________ TestUrllib.test_json_response _________________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -6538,11 +6574,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:18] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/404 HTTP/1.1" 404 0 __________________ TestUrllib.test_json_request_and_response ___________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -6560,11 +6596,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:18] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_header_sent __________________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -6579,11 +6615,11 @@ tests/unit/interceptors/base.py:205: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:19] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestUrllib.test_mocked_response_headers ____________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -6595,11 +6631,11 @@ tests/unit/interceptors/base.py:215: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:19] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestUrllib.test_mutli_value_headers ______________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -6614,11 +6650,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:19] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_mutli_value_response_headers _________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -6632,11 +6668,11 @@ tests/unit/interceptors/base.py:237: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:19] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_unmatched_headers_none_sent __________________ -self = -url_404 = 'http://127.0.0.1:38793/status/404' +self = +url_404 = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -6648,14 +6684,14 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:19] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:27] "GET /status/404 HTTP/1.1" 404 0 _______________________________ test_urllib_ssl ________________________________ -self = +self = http_class = -req = -http_conn_args = {'context': } -host = '127.0.0.1:9', h = +req = +http_conn_args = {'context': } +host = '127.0.0.1:9', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.12'} def do_open(self, http_class, req, **http_conn_args): @@ -6722,7 +6758,7 @@ raise exceptions[0] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -address = ('127.0.0.1', 9), timeout = +address = ('127.0.0.1', 9), timeout = source_address = None def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, @@ -6778,11 +6814,11 @@ return self.do_open(http.client.HTTPSConnection, req, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = http_class = -req = -http_conn_args = {'context': } -host = '127.0.0.1:9', h = +req = +http_conn_args = {'context': } +host = '127.0.0.1:9', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.12'} def do_open(self, http_class, req, **http_conn_args): @@ -6835,10 +6871,10 @@ /usr/lib/python3.12/urllib/request.py:1347: URLError ______________________________ test_urllib_clear _______________________________ -self = +self = http_class = -req = , http_conn_args = {} -host = 'example.com', h = +req = , http_conn_args = {} +host = 'example.com', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.12'} def do_open(self, http_class, req, **http_conn_args): @@ -6949,10 +6985,10 @@ return self.do_open(http.client.HTTPConnection, req) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = http_class = -req = , http_conn_args = {} -host = 'example.com', h = +req = , http_conn_args = {} +host = 'example.com', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.12'} def do_open(self, http_class, req, **http_conn_args): @@ -7193,7 +7229,7 @@ tests/unit/matchers/headers_test.py:171: AssertionError ______________________ test_param_exists_empty_disallowed ______________________ -URL = 'http://127.0.0.1:38793/status/404' +URL = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_param_exists_empty_disallowed(URL): @@ -7216,10 +7252,10 @@ result = func(*args) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -req = -fp = , code = 404 -msg = 'NOT FOUND', hdrs = +self = +req = +fp = , code = 404 +msg = 'NOT FOUND', hdrs = def http_error_default(self, req, fp, code, msg, hdrs): > raise HTTPError(req.full_url, code, msg, hdrs, fp) @@ -7227,10 +7263,10 @@ /usr/lib/python3.12/urllib/request.py:639: HTTPError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:25] "GET /status/404?x HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:28] "GET /status/404?x HTTP/1.1" 404 0 _______________________ test_param_exists_empty_allowed ________________________ -URL = 'http://127.0.0.1:38793/status/404' +URL = 'http://127.0.0.1:36845/status/404' @pytest.mark.pook def test_param_exists_empty_allowed(URL): @@ -7252,10 +7288,10 @@ result = func(*args) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -req = -fp = , code = 404 -msg = 'NOT FOUND', hdrs = +self = +req = +fp = , code = 404 +msg = 'NOT FOUND', hdrs = def http_error_default(self, req, fp, code, msg, hdrs): > raise HTTPError(req.full_url, code, msg, hdrs, fp) @@ -7263,7 +7299,7 @@ /usr/lib/python3.12/urllib/request.py:639: HTTPError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:47:27] "GET /status/404?x HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:28] "GET /status/404?x HTTP/1.1" 404 0 ________________________ test_mock_constructor[params] _________________________ param_kwargs = {'params': {'x': '1'}}, query_string = '?x=1' @@ -7332,7 +7368,7 @@ self.no_matches(msg) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = msg = "pook error!\n\n=> Cannot match any mock for the following request:\n=================================================...============\n\n=> Detailed matching errors:\nURLMatcher: 'httpbin.org' != '127.0.0.1'\n- httpbin.org\n+ 127.0.0.1\n\n" def no_matches(self, msg): @@ -7422,7 +7458,7 @@ self.no_matches(msg) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = msg = "pook error!\n\n=> Cannot match any mock for the following request:\n=================================================...============\n\n=> Detailed matching errors:\nURLMatcher: 'httpbin.org' != '127.0.0.1'\n- httpbin.org\n+ 127.0.0.1\n\n" def no_matches(self, msg): @@ -7589,11 +7625,11 @@ -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ -FAILED tests/integration/examples_test.py::test_examples[network_mode_httpx.py] -FAILED tests/integration/examples_test.py::test_examples[network_mode.py] - A... +FAILED tests/integration/examples_test.py::test_examples[aiohttp_client.py] FAILED tests/integration/examples_test.py::test_examples[decorators.py] - Ass... +FAILED tests/integration/examples_test.py::test_examples[network_mode.py] - A... FAILED tests/integration/examples_test.py::test_examples[urllib3_client.py] -FAILED tests/integration/examples_test.py::test_examples[aiohttp_client.py] +FAILED tests/integration/examples_test.py::test_examples[network_mode_httpx.py] FAILED tests/integration/examples_test.py::test_examples[mock_context_manager.py] FAILED tests/integration/pook_requests_test.py::test_requests_get - requests.... FAILED tests/integration/pook_requests_test.py::test_requests_match_url - req... @@ -7684,7 +7720,7 @@ FAILED tests/unit/matchers/query_test.py::test_param_exists_empty_allowed - u... FAILED tests/unit/mock_test.py::test_mock_constructor[params] - pook.exceptio... FAILED tests/unit/mock_test.py::test_mock_constructor[param_exists_has_value] -= 95 failed, 124 passed, 10 skipped, 3 xfailed, 42 warnings in 206.70s (0:03:26) = +===== 95 failed, 124 passed, 10 skipped, 3 xfailed, 42 warnings in 20.42s ====== E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build; python3.12 -m pytest tests I: pybuild pybuild:308: cp -r /build/reproducible-path/python-pook-2.1.3/examples /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build ; rm -f /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/mocket_example.py I: pybuild base:311: cd /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build; python3.13 -m pytest tests @@ -7692,11 +7728,11 @@ platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 rootdir: /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build configfile: pyproject.toml -plugins: pook-2.1.3, anyio-4.7.0, typeguard-4.4.1, cov-5.0.0, httpbin-2.1.0 +plugins: pook-2.1.3, httpbin-2.1.0, cov-5.0.0, typeguard-4.4.1, anyio-4.7.0 collected 232 items tests/integration/engines_test.py .. [ 0%] -tests/integration/examples_test.py .........FFFF.F......F. [ 10%] +tests/integration/examples_test.py F.....F...F...F..F.F... [ 10%] tests/integration/pook_requests_test.py FFF [ 12%] tests/unit/api_test.py ......s [ 15%] tests/unit/engine_test.py .. [ 15%] @@ -7704,9 +7740,12 @@ tests/unit/interceptors/aiohttp_test.py FFFFFFFFFFFFssssssss [ 25%] tests/unit/interceptors/httpx_test.py FFFFFFFFFFFFFFFFFFFFFFFFFsFFFF [ 37%] tests/unit/interceptors/module_test.py . [ 38%] -tests/unit/interceptors/urllib3_test.py FFFFFFFFFFFFFFFFFFFFFFFF........ [ 52%] +tests/unit/interceptors/urllib3_test.py FFFFFFFFFFFFFFFFFFFFF127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 +F127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 +FF........ [ 52%] F [ 52%] -tests/unit/interceptors/urllib_test.py FFFFFFFFFFFFFF [ 58%] +tests/unit/interceptors/urllib_test.py FF127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/401 HTTP/1.1" 401 0 +FFFFFFFFFFFF [ 58%] tests/unit/matchers/base_test.py .... [ 60%] tests/unit/matchers/headers_test.py ...........FF............ [ 71%] tests/unit/matchers/query_test.py FF [ 71%] @@ -7716,9 +7755,9 @@ tests/unit/regex_test.py .. [100%] =================================== FAILURES =================================== -_____________________ test_examples[network_mode_httpx.py] _____________________ +_______________________ test_examples[aiohttp_client.py] _______________________ -example = 'network_mode_httpx.py' +example = 'aiohttp_client.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -7727,94 +7766,28 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/network_mode_httpx.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/aiohttp_client.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError ------------------------------ Captured stdout call ----------------------------- -Mock status: 201 ----------------------------- Captured stderr call ----------------------------- +/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py:30: DeprecationWarning: There is no current event loop + loop = asyncio.get_event_loop() Traceback (most recent call last): - File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 72, in map_httpcore_exceptions - yield - File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 236, in handle_request - resp = self._pool.handle_request(req) - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request - raise exc from None - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request - response = connection.handle_request( - pool_request.request - ) - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 101, in handle_request - raise exc - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 78, in handle_request - stream = self._connect(request) - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 124, in _connect - stream = self._network_backend.connect_tcp(**kwargs) - File "/usr/lib/python3/dist-packages/httpcore/_backends/sync.py", line 207, in connect_tcp - with map_exceptions(exc_map): - ~~~~~~~~~~~~~~^^^^^^^^^ - File "/usr/lib/python3.13/contextlib.py", line 162, in __exit__ - self.gen.throw(value) - ~~~~~~~~~~~~~~^^^^^^^ - File "/usr/lib/python3/dist-packages/httpcore/_exceptions.py", line 14, in map_exceptions - raise to_exc(exc) from exc -httpcore.ConnectError: [Errno -3] Temporary failure in name resolution - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/network_mode_httpx.py", line 22, in - res = httpx.get("http://httpbin.org/ip") - File "/usr/lib/python3/dist-packages/httpx/_api.py", line 210, in get - return request( - "GET", - ...<11 lines>... - trust_env=trust_env, - ) - File "/usr/lib/python3/dist-packages/httpx/_api.py", line 118, in request - return client.request( - ~~~~~~~~~~~~~~^ - method=method, - ^^^^^^^^^^^^^^ - ...<8 lines>... - follow_redirects=follow_redirects, - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ) - ^ - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 837, in request - return self.send(request, auth=auth, follow_redirects=follow_redirects) - ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 926, in send - response = self._send_handling_auth( - request, - ...<2 lines>... - history=[], - ) - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 954, in _send_handling_auth - response = self._send_handling_redirects( - request, - follow_redirects=follow_redirects, - history=history, - ) - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 991, in _send_handling_redirects - response = self._send_single_request(request) - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 1027, in _send_single_request - response = transport.handle_request(request) - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/_httpx.py", line 141, in handle_request - return transport.handle_request(request) - ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 235, in handle_request - with map_httpcore_exceptions(): - ~~~~~~~~~~~~~~~~~~~~~~~^^ - File "/usr/lib/python3.13/contextlib.py", line 162, in __exit__ - self.gen.throw(value) - ~~~~~~~~~~~~~~^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions - raise mapped_exc(message) from exc -httpx.ConnectError: [Errno -3] Temporary failure in name resolution -________________________ test_examples[network_mode.py] ________________________ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py", line 31, in + loop.run_until_complete(main(loop)) + ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ + File "/usr/lib/python3.13/asyncio/base_events.py", line 720, in run_until_complete + return future.result() + ~~~~~~~~~~~~~^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py", line 28, in main + await fetch(session, "http://httpbin.org/ip", bytearray("foo bar", "utf-8")) + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py", line 10, in fetch + with async_timeout.timeout(10): + ~~~~~~~~~~~~~~~~~~~~~^^^^ +TypeError: 'Timeout' object does not support the context manager protocol +_________________________ test_examples[decorators.py] _________________________ -example = 'network_mode.py' +example = 'decorators.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -7823,11 +7796,14 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/network_mode.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/decorators.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError ----------------------------- Captured stdout call ----------------------------- -Mock status: 201 +#1 status: 200 +#2 status: 204 +Is done: True +Pending mocks: [] ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 199, in _new_conn @@ -7880,7 +7856,7 @@ ~~~~~~~~~~~~~~^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn raise NameResolutionError(self.host, self, e) from e -urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) +urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) The above exception was the direct cause of the following exception: @@ -7891,24 +7867,6 @@ ...<9 lines>... chunked=chunked, ) - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 175, in handler - return self._on_request( - ~~~~~~~~~~~~~~~~^ - urlopen, path, conn, method, url, body=body, headers=headers, **kw - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ) - ^ - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request - return urlopen(pool, method, url, body=body, headers=headers, **kw) - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 175, in handler - return self._on_request( - ~~~~~~~~~~~~~~~~^ - urlopen, path, conn, method, url, body=body, headers=headers, **kw - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ) - ^ - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request - return urlopen(pool, method, url, body=body, headers=headers, **kw) File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 843, in urlopen retries = retries.increment( method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2] @@ -7916,13 +7874,13 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) During handling of the above exception, another exception occurred: Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/network_mode.py", line 22, in - res = requests.get("http://httpbin.org/ip") + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/decorators.py", line 26, in + res = requests.get("http://httpbin.org/status/400") File "/usr/lib/python3/dist-packages/requests/api.py", line 73, in get return request("get", url, params=params, **kwargs) File "/usr/lib/python3/dist-packages/requests/api.py", line 59, in request @@ -7934,10 +7892,10 @@ r = adapter.send(request, **kwargs) File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send raise ConnectionError(e, request=request) -requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) -_________________________ test_examples[decorators.py] _________________________ +requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +________________________ test_examples[network_mode.py] ________________________ -example = 'decorators.py' +example = 'network_mode.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -7946,14 +7904,11 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/decorators.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/network_mode.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError ----------------------------- Captured stdout call ----------------------------- -#1 status: 200 -#2 status: 204 -Is done: True -Pending mocks: [] +Mock status: 201 ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 199, in _new_conn @@ -8006,7 +7961,7 @@ ~~~~~~~~~~~~~~^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn raise NameResolutionError(self.host, self, e) from e -urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) +urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) The above exception was the direct cause of the following exception: @@ -8017,6 +7972,24 @@ ...<9 lines>... chunked=chunked, ) + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 175, in handler + return self._on_request( + ~~~~~~~~~~~~~~~~^ + urlopen, path, conn, method, url, body=body, headers=headers, **kw + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ) + ^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request + return urlopen(pool, method, url, body=body, headers=headers, **kw) + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 175, in handler + return self._on_request( + ~~~~~~~~~~~~~~~~^ + urlopen, path, conn, method, url, body=body, headers=headers, **kw + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ) + ^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request + return urlopen(pool, method, url, body=body, headers=headers, **kw) File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 843, in urlopen retries = retries.increment( method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2] @@ -8024,13 +7997,13 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) During handling of the above exception, another exception occurred: Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/decorators.py", line 26, in - res = requests.get("http://httpbin.org/status/400") + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/network_mode.py", line 22, in + res = requests.get("http://httpbin.org/ip") File "/usr/lib/python3/dist-packages/requests/api.py", line 73, in get return request("get", url, params=params, **kwargs) File "/usr/lib/python3/dist-packages/requests/api.py", line 59, in request @@ -8042,7 +8015,7 @@ r = adapter.send(request, **kwargs) File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send raise ConnectionError(e, request=request) -requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) _______________________ test_examples[urllib3_client.py] _______________________ example = 'urllib3_client.py' @@ -8111,7 +8084,7 @@ ~~~~~~~~~~~~~~^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn raise NameResolutionError(self.host, self, e) from e -urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) +urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) The above exception was the direct cause of the following exception: @@ -8170,10 +8143,10 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/404 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) -_______________________ test_examples[aiohttp_client.py] _______________________ +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/404 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +_____________________ test_examples[network_mode_httpx.py] _____________________ -example = 'aiohttp_client.py' +example = 'network_mode_httpx.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -8182,25 +8155,91 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/aiohttp_client.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/network_mode_httpx.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError +----------------------------- Captured stdout call ----------------------------- +Mock status: 201 ----------------------------- Captured stderr call ----------------------------- -/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py:30: DeprecationWarning: There is no current event loop - loop = asyncio.get_event_loop() Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py", line 31, in - loop.run_until_complete(main(loop)) - ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ - File "/usr/lib/python3.13/asyncio/base_events.py", line 720, in run_until_complete - return future.result() - ~~~~~~~~~~~~~^^ - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py", line 28, in main - await fetch(session, "http://httpbin.org/ip", bytearray("foo bar", "utf-8")) - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py", line 10, in fetch - with async_timeout.timeout(10): - ~~~~~~~~~~~~~~~~~~~~~^^^^ -TypeError: 'Timeout' object does not support the context manager protocol + File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 72, in map_httpcore_exceptions + yield + File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 236, in handle_request + resp = self._pool.handle_request(req) + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request + raise exc from None + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request + response = connection.handle_request( + pool_request.request + ) + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 101, in handle_request + raise exc + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 78, in handle_request + stream = self._connect(request) + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 124, in _connect + stream = self._network_backend.connect_tcp(**kwargs) + File "/usr/lib/python3/dist-packages/httpcore/_backends/sync.py", line 207, in connect_tcp + with map_exceptions(exc_map): + ~~~~~~~~~~~~~~^^^^^^^^^ + File "/usr/lib/python3.13/contextlib.py", line 162, in __exit__ + self.gen.throw(value) + ~~~~~~~~~~~~~~^^^^^^^ + File "/usr/lib/python3/dist-packages/httpcore/_exceptions.py", line 14, in map_exceptions + raise to_exc(exc) from exc +httpcore.ConnectError: [Errno -3] Temporary failure in name resolution + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/network_mode_httpx.py", line 22, in + res = httpx.get("http://httpbin.org/ip") + File "/usr/lib/python3/dist-packages/httpx/_api.py", line 210, in get + return request( + "GET", + ...<11 lines>... + trust_env=trust_env, + ) + File "/usr/lib/python3/dist-packages/httpx/_api.py", line 118, in request + return client.request( + ~~~~~~~~~~~~~~^ + method=method, + ^^^^^^^^^^^^^^ + ...<8 lines>... + follow_redirects=follow_redirects, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ) + ^ + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 837, in request + return self.send(request, auth=auth, follow_redirects=follow_redirects) + ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 926, in send + response = self._send_handling_auth( + request, + ...<2 lines>... + history=[], + ) + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 954, in _send_handling_auth + response = self._send_handling_redirects( + request, + follow_redirects=follow_redirects, + history=history, + ) + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 991, in _send_handling_redirects + response = self._send_single_request(request) + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 1027, in _send_single_request + response = transport.handle_request(request) + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/_httpx.py", line 141, in handle_request + return transport.handle_request(request) + ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 235, in handle_request + with map_httpcore_exceptions(): + ~~~~~~~~~~~~~~~~~~~~~~~^^ + File "/usr/lib/python3.13/contextlib.py", line 162, in __exit__ + self.gen.throw(value) + ~~~~~~~~~~~~~~^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions + raise mapped_exc(message) from exc +httpx.ConnectError: [Errno -3] Temporary failure in name resolution ____________________ test_examples[mock_context_manager.py] ____________________ example = 'mock_context_manager.py' @@ -8281,7 +8320,7 @@ ~~~~~~~~~~~~~~^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn raise NameResolutionError(self.host, self, e) from e -urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) +urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) The above exception was the direct cause of the following exception: @@ -8299,7 +8338,7 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) During handling of the above exception, another exception occurred: @@ -8317,10 +8356,10 @@ r = adapter.send(request, **kwargs) File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send raise ConnectionError(e, request=request) -requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) ______________________________ test_requests_get _______________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -8368,7 +8407,7 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET', url = '/', body = None headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -8606,7 +8645,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -8622,13 +8661,13 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -8710,9 +8749,9 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET', url = '/', response = None -error = NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)") -_pool = -_stacktrace = +error = NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)") +_pool = +_stacktrace = def increment( self, @@ -8806,7 +8845,7 @@ if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] -E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError @@ -8830,7 +8869,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -8924,12 +8963,12 @@ raise SSLError(e, request=request) > raise ConnectionError(e, request=request) -E requests.exceptions.ConnectionError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) +E requests.exceptions.ConnectionError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/requests/adapters.py:700: ConnectionError ___________________________ test_requests_match_url ____________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -8977,7 +9016,7 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET', url = '/', body = None headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -9215,7 +9254,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -9231,13 +9270,13 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -9319,9 +9358,9 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET', url = '/', response = None -error = NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)") -_pool = -_stacktrace = +error = NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)") +_pool = +_stacktrace = def increment( self, @@ -9415,7 +9454,7 @@ if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] -E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError @@ -9439,7 +9478,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -9533,12 +9572,12 @@ raise SSLError(e, request=request) > raise ConnectionError(e, request=request) -E requests.exceptions.ConnectionError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) +E requests.exceptions.ConnectionError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/requests/adapters.py:700: ConnectionError _______________________ test_requests_match_query_params _______________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -9586,7 +9625,7 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET', url = '/?foo=bar', body = None headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -9824,7 +9863,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -9840,13 +9879,13 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -9928,9 +9967,9 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET', url = '/?foo=bar', response = None -error = NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)") -_pool = -_stacktrace = +error = NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)") +_pool = +_stacktrace = def increment( self, @@ -10024,7 +10063,7 @@ if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] -E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: /?foo=bar (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: /?foo=bar (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError @@ -10048,7 +10087,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -10142,13 +10181,13 @@ raise SSLError(e, request=request) > raise ConnectionError(e, request=request) -E requests.exceptions.ConnectionError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: /?foo=bar (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) +E requests.exceptions.ConnectionError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: /?foo=bar (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/requests/adapters.py:700: ConnectionError _________________ TestStandardAiohttp.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -10162,12 +10201,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:50:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:46] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' -url_500 = 'http://127.0.0.1:38985/status/500' +self = +url_404 = 'http://127.0.0.1:40727/status/404' +url_500 = 'http://127.0.0.1:40727/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -10187,12 +10226,12 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:50:52] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [09/Jan/2025 14:50:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:46] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [12/Feb/2026 23:17:46] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardAiohttp.test_network_mode_hostname ________________ -self = -req = +self = +req = traces = [] timeout = ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=30, ceil_threshold=5) @@ -10264,8 +10303,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:38985/status/401' +self = +url_401 = 'http://127.0.0.1:40727/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -10301,8 +10340,8 @@ _, proto = await self._create_direct_connection(req, traces, timeout) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -req = +self = +req = traces = [] timeout = ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=30, ceil_threshold=5) @@ -10341,11 +10380,11 @@ /usr/lib/python3/dist-packages/aiohttp/connector.py:1341: ClientConnectorDNSError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:50:52] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:46] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardAiohttp.test_multiple_network_filters _______________ -self = -url_401 = 'http://127.0.0.1:38985/status/401' +self = +url_401 = 'http://127.0.0.1:40727/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -10381,13 +10420,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:50:54] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:50:54] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:50:54] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:46] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:46] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:46] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardAiohttp.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -10404,11 +10443,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:50:54] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:46] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -10423,11 +10462,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:50:54] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:46] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAiohttp.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -10445,11 +10484,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:50:54] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:46] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardAiohttp.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -10466,11 +10505,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:50:54] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:46] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAiohttp.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -10484,11 +10523,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:50:54] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:46] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardAiohttp.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -10503,11 +10542,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:50:54] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:47] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAiohttp.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -10523,11 +10562,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:50:54] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:47] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAiohttp.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -10539,11 +10578,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:50:54] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:47] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -10557,12 +10596,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:50:55] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:47] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_network_mode ___________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' -url_500 = 'http://127.0.0.1:38985/status/500' +self = +url_404 = 'http://127.0.0.1:40727/status/404' +url_500 = 'http://127.0.0.1:40727/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -10582,8 +10621,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:50:56] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [09/Jan/2025 14:50:56] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:47] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [12/Feb/2026 23:17:47] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAsyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -10629,8 +10668,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:38985/status/401' +self = +url_401 = 'http://127.0.0.1:40727/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -10699,11 +10738,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:50:56] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:47] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardAsyncHttpx.test_multiple_network_filters _____________ -self = -url_401 = 'http://127.0.0.1:38985/status/401' +self = +url_401 = 'http://127.0.0.1:40727/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -10739,13 +10778,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:50:59] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:50:59] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:50:59] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:47] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:47] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:47] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardAsyncHttpx.test_json_request ___________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -10762,11 +10801,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:00] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:47] "GET /status/404 HTTP/1.1" 404 0 __________________ TestStandardAsyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -10781,11 +10820,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:00] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:47] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAsyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -10803,11 +10842,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:01] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:47] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -10824,11 +10863,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:01] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:47] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAsyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -10842,11 +10881,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:02] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:47] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -10861,11 +10900,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:02] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_mutli_value_response_headers ___________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -10881,11 +10920,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:02] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -10897,11 +10936,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:03] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -10915,12 +10954,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:03] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' -url_500 = 'http://127.0.0.1:38985/status/500' +self = +url_404 = 'http://127.0.0.1:40727/status/404' +url_500 = 'http://127.0.0.1:40727/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -10940,8 +10979,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:03] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [09/Jan/2025 14:51:04] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardSyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -10985,8 +11024,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:38985/status/401' +self = +url_401 = 'http://127.0.0.1:40727/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -11053,11 +11092,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:04] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardSyncHttpx.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:38985/status/401' +self = +url_401 = 'http://127.0.0.1:40727/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -11093,13 +11132,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:06] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:51:06] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:51:07] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardSyncHttpx.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -11116,11 +11155,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -11135,11 +11174,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardSyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -11157,11 +11196,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardSyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -11178,11 +11217,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardSyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -11196,11 +11235,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:08] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -11215,11 +11254,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:08] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardSyncHttpx.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -11235,11 +11274,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:08] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardSyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -11251,10 +11290,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:08] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_sync ___________________________________ -URL = 'http://127.0.0.1:38985/status/404' +URL = 'http://127.0.0.1:40727/status/404' def test_sync(URL): pook.get(URL).times(1).reply(200).body("123") @@ -11267,10 +11306,10 @@ tests/unit/interceptors/httpx_test.py:43: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:08] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_json ___________________________________ -URL = 'http://127.0.0.1:38985/status/404' +URL = 'http://127.0.0.1:40727/status/404' def test_json(URL): ( @@ -11289,10 +11328,10 @@ tests/unit/interceptors/httpx_test.py:67: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:08] "POST /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "POST /status/404 HTTP/1.1" 404 0 __________________________ test_streaming[iter_bytes] __________________________ -URL = 'http://127.0.0.1:38985/status/404', response_method = 'iter_bytes' +URL = 'http://127.0.0.1:40727/status/404', response_method = 'iter_bytes' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -11309,10 +11348,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_streaming[iter_raw] ___________________________ -URL = 'http://127.0.0.1:38985/status/404', response_method = 'iter_raw' +URL = 'http://127.0.0.1:40727/status/404', response_method = 'iter_raw' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -11329,10 +11368,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_redirect_following ____________________________ -URL = 'http://127.0.0.1:38985/status/404' +URL = 'http://127.0.0.1:40727/status/404' def test_redirect_following(URL): urls = [URL, f"{URL}/redirected", f"{URL}/redirected_again"] @@ -11350,11 +11389,11 @@ tests/unit/interceptors/httpx_test.py:93: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -11368,12 +11407,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' -url_500 = 'http://127.0.0.1:38985/status/500' +self = +url_404 = 'http://127.0.0.1:40727/status/404' +url_500 = 'http://127.0.0.1:40727/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -11393,11 +11432,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:09] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [09/Jan/2025 14:51:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardUrllib3.test_network_mode_hostname ________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -11445,7 +11484,7 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET', url = '/', body = None, headers = {} retries = Retry(total=0, connect=None, read=None, redirect=None, status=None) redirect = False, assert_same_host = False, timeout = <_TYPE_DEFAULT.token: -1> @@ -11681,7 +11720,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -11697,14 +11736,14 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:38985/status/401' +self = +url_401 = 'http://127.0.0.1:40727/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -11746,9 +11785,9 @@ self = Retry(total=0, connect=None, read=None, redirect=None, status=None) method = 'GET', url = '/', response = None -error = NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)") -_pool = -_stacktrace = +error = NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)") +_pool = +_stacktrace = def increment( self, @@ -11842,19 +11881,19 @@ if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] -E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:09] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:48] "GET /status/401 HTTP/1.1" 401 0 ------------------------------ Captured log call ------------------------------- -WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / -WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / -WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / +WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / +WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / +WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / ______________ TestStandardUrllib3.test_multiple_network_filters _______________ -self = -url_401 = 'http://127.0.0.1:38985/status/401' +self = +url_401 = 'http://127.0.0.1:40727/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -11890,13 +11929,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:11] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:51:11] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:51:11] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardUrllib3.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -11913,11 +11952,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -11932,11 +11971,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardUrllib3.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -11954,11 +11993,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardUrllib3.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -11975,11 +12014,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardUrllib3.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -11993,11 +12032,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -12012,11 +12051,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardUrllib3.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -12032,11 +12071,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardUrllib3.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -12048,11 +12087,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -12066,12 +12105,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' -url_500 = 'http://127.0.0.1:38985/status/500' +self = +url_404 = 'http://127.0.0.1:40727/status/404' +url_500 = 'http://127.0.0.1:40727/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -12091,11 +12130,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:12] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [09/Jan/2025 14:51:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardRequests.test_network_mode_hostname ________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -12143,7 +12182,7 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET', url = '/', body = None headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -12381,7 +12420,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -12397,13 +12436,13 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -12485,9 +12524,9 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET', url = '/', response = None -error = NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)") -_pool = -_stacktrace = +error = NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)") +_pool = +_stacktrace = def increment( self, @@ -12581,14 +12620,14 @@ if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] -E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url_401 = 'http://127.0.0.1:38985/status/401' +self = +url_401 = 'http://127.0.0.1:40727/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -12620,7 +12659,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -12714,15 +12753,15 @@ raise SSLError(e, request=request) > raise ConnectionError(e, request=request) -E requests.exceptions.ConnectionError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) +E requests.exceptions.ConnectionError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/requests/adapters.py:700: ConnectionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:12] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardRequests.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:38985/status/401' +self = +url_401 = 'http://127.0.0.1:40727/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -12758,13 +12797,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:14] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:51:14] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:51:14] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardRequests.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -12781,11 +12820,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:14] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardRequests.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -12800,11 +12839,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:14] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardRequests.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -12822,11 +12861,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:14] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -12843,11 +12882,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:14] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardRequests.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -12861,11 +12900,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:15] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -12879,12 +12918,10 @@ E AssertionError tests/unit/interceptors/base.py:228: AssertionError ------------------------------ Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:15] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -12899,12 +12936,10 @@ E AssertionError tests/unit/interceptors/base.py:239: AssertionError ------------------------------ Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:15] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -12916,10 +12951,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:15] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 ____________________________ test_post_with_headers ____________________________ -URL = 'http://127.0.0.1:38985/foo' +URL = 'http://127.0.0.1:40727/foo' @pytest.mark.pook def test_post_with_headers(URL): @@ -12928,15 +12963,15 @@ resp = http.request("POST", URL) > assert resp.status == 200 E assert 404 == 200 -E + where 404 = .status +E + where 404 = .status tests/unit/interceptors/urllib3_test.py:112: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:15] "POST /foo HTTP/1.1" 404 207 +127.0.0.1 - - [12/Feb/2026 23:17:49] "POST /foo HTTP/1.1" 404 207 _____________________ TestUrllib.test_activate_deactivate ______________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -12950,12 +12985,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:15] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_network_mode _________________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' -url_500 = 'http://127.0.0.1:38985/status/500' +self = +url_404 = 'http://127.0.0.1:40727/status/404' +url_500 = 'http://127.0.0.1:40727/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -12975,14 +13010,14 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:15] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [09/Jan/2025 14:51:15] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [12/Feb/2026 23:17:49] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestUrllib.test_network_mode_hostname _____________________ -self = +self = http_class = -req = , http_conn_args = {} -host = 'example.com', h = +req = , http_conn_args = {} +host = 'example.com', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.13'} def do_open(self, http_class, req, **http_conn_args): @@ -13074,8 +13109,8 @@ During handling of the above exception, another exception occurred: -self = -url_401 = 'http://127.0.0.1:38985/status/401' +self = +url_401 = 'http://127.0.0.1:40727/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -13111,10 +13146,10 @@ return self.do_open(http.client.HTTPConnection, req) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = http_class = -req = , http_conn_args = {} -host = 'example.com', h = +req = , http_conn_args = {} +host = 'example.com', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.13'} def do_open(self, http_class, req, **http_conn_args): @@ -13165,12 +13200,10 @@ E urllib.error.URLError: /usr/lib/python3.13/urllib/request.py:1322: URLError ------------------------------ Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:16] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestUrllib.test_multiple_network_filters ___________________ -self = -url_401 = 'http://127.0.0.1:38985/status/401' +self = +url_401 = 'http://127.0.0.1:40727/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -13206,13 +13239,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:18] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:51:18] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [09/Jan/2025 14:51:18] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:50] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:50] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [12/Feb/2026 23:17:50] "GET /status/401 HTTP/1.1" 401 0 _________________________ TestUrllib.test_json_request _________________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -13229,11 +13262,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:18] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:50] "GET /status/404 HTTP/1.1" 404 0 ________________________ TestUrllib.test_json_response _________________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -13248,11 +13281,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:18] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:50] "GET /status/404 HTTP/1.1" 404 0 __________________ TestUrllib.test_json_request_and_response ___________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -13270,11 +13303,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:18] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:50] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_header_sent __________________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -13289,11 +13322,11 @@ tests/unit/interceptors/base.py:205: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:18] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:50] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestUrllib.test_mocked_response_headers ____________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -13305,11 +13338,11 @@ tests/unit/interceptors/base.py:215: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:18] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:50] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestUrllib.test_mutli_value_headers ______________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -13324,11 +13357,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:18] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:50] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_mutli_value_response_headers _________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -13342,11 +13375,11 @@ tests/unit/interceptors/base.py:237: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:18] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:50] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_unmatched_headers_none_sent __________________ -self = -url_404 = 'http://127.0.0.1:38985/status/404' +self = +url_404 = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -13358,14 +13391,14 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:19] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:50] "GET /status/404 HTTP/1.1" 404 0 _______________________________ test_urllib_ssl ________________________________ -self = +self = http_class = -req = -http_conn_args = {'context': } -host = '127.0.0.1:9', h = +req = +http_conn_args = {'context': } +host = '127.0.0.1:9', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.13'} def do_open(self, http_class, req, **http_conn_args): @@ -13432,7 +13465,7 @@ raise exceptions[0] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -address = ('127.0.0.1', 9), timeout = +address = ('127.0.0.1', 9), timeout = source_address = None def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, @@ -13488,11 +13521,11 @@ return self.do_open(http.client.HTTPSConnection, req, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = http_class = -req = -http_conn_args = {'context': } -host = '127.0.0.1:9', h = +req = +http_conn_args = {'context': } +host = '127.0.0.1:9', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.13'} def do_open(self, http_class, req, **http_conn_args): @@ -13545,10 +13578,10 @@ /usr/lib/python3.13/urllib/request.py:1322: URLError ______________________________ test_urllib_clear _______________________________ -self = +self = http_class = -req = , http_conn_args = {} -host = 'example.com', h = +req = , http_conn_args = {} +host = 'example.com', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.13'} def do_open(self, http_class, req, **http_conn_args): @@ -13659,10 +13692,10 @@ return self.do_open(http.client.HTTPConnection, req) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = http_class = -req = , http_conn_args = {} -host = 'example.com', h = +req = , http_conn_args = {} +host = 'example.com', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.13'} def do_open(self, http_class, req, **http_conn_args): @@ -13903,7 +13936,7 @@ tests/unit/matchers/headers_test.py:171: AssertionError ______________________ test_param_exists_empty_disallowed ______________________ -URL = 'http://127.0.0.1:38985/status/404' +URL = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_param_exists_empty_disallowed(URL): @@ -13926,10 +13959,10 @@ result = func(*args) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -req = -fp = , code = 404 -msg = 'NOT FOUND', hdrs = +self = +req = +fp = , code = 404 +msg = 'NOT FOUND', hdrs = def http_error_default(self, req, fp, code, msg, hdrs): > raise HTTPError(req.full_url, code, msg, hdrs, fp) @@ -13937,10 +13970,10 @@ /usr/lib/python3.13/urllib/request.py:613: HTTPError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:24] "GET /status/404?x HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:50] "GET /status/404?x HTTP/1.1" 404 0 _______________________ test_param_exists_empty_allowed ________________________ -URL = 'http://127.0.0.1:38985/status/404' +URL = 'http://127.0.0.1:40727/status/404' @pytest.mark.pook def test_param_exists_empty_allowed(URL): @@ -13962,10 +13995,10 @@ result = func(*args) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -req = -fp = , code = 404 -msg = 'NOT FOUND', hdrs = +self = +req = +fp = , code = 404 +msg = 'NOT FOUND', hdrs = def http_error_default(self, req, fp, code, msg, hdrs): > raise HTTPError(req.full_url, code, msg, hdrs, fp) @@ -13973,7 +14006,7 @@ /usr/lib/python3.13/urllib/request.py:613: HTTPError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [09/Jan/2025 14:51:26] "GET /status/404?x HTTP/1.1" 404 0 +127.0.0.1 - - [12/Feb/2026 23:17:50] "GET /status/404?x HTTP/1.1" 404 0 ________________________ test_mock_constructor[params] _________________________ param_kwargs = {'params': {'x': '1'}}, query_string = '?x=1' @@ -14042,7 +14075,7 @@ self.no_matches(msg) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = msg = "pook error!\n\n=> Cannot match any mock for the following request:\n=================================================...============\n\n=> Detailed matching errors:\nURLMatcher: 'httpbin.org' != '127.0.0.1'\n- httpbin.org\n+ 127.0.0.1\n\n" def no_matches(self, msg): @@ -14132,7 +14165,7 @@ self.no_matches(msg) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = msg = "pook error!\n\n=> Cannot match any mock for the following request:\n=================================================...============\n\n=> Detailed matching errors:\nURLMatcher: 'httpbin.org' != '127.0.0.1'\n- httpbin.org\n+ 127.0.0.1\n\n" def no_matches(self, msg): @@ -14299,11 +14332,11 @@ -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ -FAILED tests/integration/examples_test.py::test_examples[network_mode_httpx.py] -FAILED tests/integration/examples_test.py::test_examples[network_mode.py] - A... +FAILED tests/integration/examples_test.py::test_examples[aiohttp_client.py] FAILED tests/integration/examples_test.py::test_examples[decorators.py] - Ass... +FAILED tests/integration/examples_test.py::test_examples[network_mode.py] - A... FAILED tests/integration/examples_test.py::test_examples[urllib3_client.py] -FAILED tests/integration/examples_test.py::test_examples[aiohttp_client.py] +FAILED tests/integration/examples_test.py::test_examples[network_mode_httpx.py] FAILED tests/integration/examples_test.py::test_examples[mock_context_manager.py] FAILED tests/integration/pook_requests_test.py::test_requests_get - requests.... FAILED tests/integration/pook_requests_test.py::test_requests_match_url - req... @@ -14394,7 +14427,7 @@ FAILED tests/unit/matchers/query_test.py::test_param_exists_empty_allowed - u... FAILED tests/unit/mock_test.py::test_mock_constructor[params] - pook.exceptio... FAILED tests/unit/mock_test.py::test_mock_constructor[param_exists_has_value] -= 95 failed, 124 passed, 10 skipped, 3 xfailed, 42 warnings in 221.83s (0:03:41) = +===== 95 failed, 124 passed, 10 skipped, 3 xfailed, 42 warnings in 21.41s ====== E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build; python3.13 -m pytest tests dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.13" returned exit code 13 make[1]: Leaving directory '/build/reproducible-path/python-pook-2.1.3' @@ -14432,12 +14465,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/263293/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/263293/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/2959779 and its subdirectories -I: Current time: Thu Jan 9 14:52:13 -12 2025 -I: pbuilder-time-stamp: 1736477533 +I: removing directory /srv/workspace/pbuilder/263293 and its subdirectories +I: Current time: Thu Feb 12 23:17:57 +14 2026 +I: pbuilder-time-stamp: 1770887877