Diff of the two buildlogs: -- --- b1/build.log 2025-01-12 16:02:59.625562815 +0000 +++ b2/build.log 2025-01-12 16:07:11.186103535 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sat Feb 14 10:24:18 -12 2026 -I: pbuilder-time-stamp: 1771107858 +I: Current time: Mon Jan 13 06:03:02 +14 2025 +I: pbuilder-time-stamp: 1736697782 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -26,54 +26,86 @@ 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/70022/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/14717/tmp/hooks/D01_modify_environment starting +debug: Running on ionos2-i386. +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 Jan 12 16:03 /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/14717/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/14717/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='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=22 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='i386' + 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]="i686-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=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=10 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='4bd5ab21567342c2a3b5dc2fb229fadb' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - 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='70022' - PS1='# ' - PS2='> ' + INVOCATION_ID=30607193921e41e3a06d735ed95c4efe + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-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=14717 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.iZgZRNtZ/pbuilderrc_d6sr --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.iZgZRNtZ/b1 --logfile b1/build.log python-pook_2.1.3-1.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152: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.iZgZRNtZ/pbuilderrc_lMGt --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.iZgZRNtZ/b2 --logfile b2/build.log python-pook_2.1.3-1.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos6-i386 6.1.0-29-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 (2025-01-02) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-29-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 (2025-01-02) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/70022/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/14717/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -307,7 +339,7 @@ Get: 162 http://deb.debian.org/debian unstable/main i386 python3-sphinxcontrib.jquery all 4.1-5 [7348 B] Get: 163 http://deb.debian.org/debian unstable/main i386 python3-sphinx-rtd-theme all 3.0.2+dfsg-1 [29.5 kB] Get: 164 http://deb.debian.org/debian unstable/main i386 python3-xmltodict all 0.13.0-1 [16.7 kB] -Fetched 56.6 MB in 1s (78.5 MB/s) +Fetched 56.6 MB in 1s (45.7 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 ... 19835 files and directories currently installed.) @@ -839,8 +871,8 @@ Setting up tzdata (2024b-5) ... Current default time zone: 'Etc/UTC' -Local time is now: Sat Feb 14 22:24:40 UTC 2026. -Universal Time is now: Sat Feb 14 22:24:40 UTC 2026. +Local time is now: Sun Jan 12 16:03:47 UTC 2025. +Universal Time is now: Sun Jan 12 16:03:47 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20220109.1) ... @@ -1002,7 +1034,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/14717/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/14717/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 @@ -1057,8 +1093,8 @@ preparing documents... done copying assets... copying static files... -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/basic.css 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/js/versions.js copying static files: done @@ -1104,11 +1140,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, typeguard-4.4.1, httpbin-2.1.0, cov-5.0.0, anyio-4.7.0 +plugins: pook-2.1.3, typeguard-4.4.1, cov-5.0.0, anyio-4.7.0, httpbin-2.1.0 collected 232 items tests/integration/engines_test.py .. [ 0%] -tests/integration/examples_test.py .....F..F....F.F.F.F... [ 10%] +tests/integration/examples_test.py F.F....F.........F...FF [ 10%] tests/integration/pook_requests_test.py FFF [ 12%] tests/unit/api_test.py ......s [ 15%] tests/unit/engine_test.py .. [ 15%] @@ -1118,20 +1154,20 @@ tests/unit/interceptors/module_test.py . [ 38%] tests/unit/interceptors/urllib3_test.py FFFFFFFFFFFFFFFFFFFFFFFF........ [ 52%] F [ 52%] -tests/unit/interceptors/urllib_test.py FFFFFFFFFFFFFF [ 58%] +tests/unit/interceptors/urllib_test.py FFFFFFF127.0.0.1 - - [13/Jan/2025 06:06:14] "GET /status/404 HTTP/1.1" 404 0 +FFFFFFF [ 58%] tests/unit/matchers/base_test.py .... [ 60%] tests/unit/matchers/headers_test.py ...........FF............ [ 71%] -tests/unit/matchers/query_test.py F127.0.0.1 - - [14/Feb/2026 10:25:34] "GET /status/404?x HTTP/1.1" 404 0 -F [ 71%] +tests/unit/matchers/query_test.py FF [ 71%] tests/unit/matchers/url_test.py ............................ [ 84%] tests/unit/mock_engine_test.py ....x [ 86%] tests/unit/mock_test.py .FxxF......................... [ 99%] tests/unit/regex_test.py .. [100%] =================================== FAILURES =================================== -_______________________ test_examples[aiohttp_client.py] _______________________ +_______________________ test_examples[urllib3_client.py] _______________________ -example = 'aiohttp_client.py' +example = 'urllib3_client.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -1140,24 +1176,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/urllib3_client.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError +----------------------------- Captured stdout call ----------------------------- +#1 status: 204 ----------------------------- 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 "/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): - ^^^^^^^^^^^^^^^^^^^^^^^^^ -TypeError: 'Timeout' object does not support the context manager protocol + File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 199, in _new_conn + sock = connection.create_connection( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection + for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.12/socket.py", line 976, in getaddrinfo + for res in _socket.getaddrinfo(host, port, family, type, proto, flags): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +socket.gaierror: [Errno -3] Temporary failure in name resolution + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 789, in urlopen + response = self._make_request( + ^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 495, in _make_request + conn.request( + File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 441, in request + self.endheaders() + File "/usr/lib/python3.12/http/client.py", line 1331, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.12/http/client.py", line 1091, in _send_output + self.send(msg) + File "/usr/lib/python3.12/http/client.py", line 1035, in send + self.connect() + File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 279, in connect + self.sock = self._new_conn() + ^^^^^^^^^^^^^^^^ + 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) + +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/urllib3_client.py", line 17, in + r = http.request("GET", "http://httpbin.org/status/404") + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/urllib3/_request_methods.py", line 135, in request + return self.request_encode_url( + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/urllib3/_request_methods.py", line 182, in request_encode_url + return self.urlopen(method, url, **extra_kw) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/urllib3/poolmanager.py", line 443, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen + return self.urlopen( + ^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen + return self.urlopen( + ^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen + return self.urlopen( + ^^^^^^^^^^^^^ + 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/404 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) ____________________ test_examples[mock_context_manager.py] ____________________ example = 'mock_context_manager.py' @@ -1220,7 +1310,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: @@ -1234,7 +1324,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: @@ -1256,7 +1346,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: /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_examples[network_mode_httpx.py] _____________________ example = 'network_mode_httpx.py' @@ -1340,9 +1430,9 @@ 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[urllib3_client.py] _______________________ +_______________________ test_examples[aiohttp_client.py] _______________________ -example = 'urllib3_client.py' +example = 'aiohttp_client.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -1351,81 +1441,27 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/urllib3_client.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 ----------------------------- -#1 status: 204 ----------------------------- 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/urllib3/connection.py", line 199, in _new_conn - sock = connection.create_connection( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection - for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3.12/socket.py", line 976, in getaddrinfo - for res in _socket.getaddrinfo(host, port, family, type, proto, flags): - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -socket.gaierror: [Errno -3] Temporary failure in name resolution - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 789, in urlopen - response = self._make_request( - ^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 495, in _make_request - conn.request( - File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 441, in request - self.endheaders() - File "/usr/lib/python3.12/http/client.py", line 1331, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - File "/usr/lib/python3.12/http/client.py", line 1091, in _send_output - self.send(msg) - File "/usr/lib/python3.12/http/client.py", line 1035, in send - self.connect() - File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 279, in connect - self.sock = self._new_conn() - ^^^^^^^^^^^^^^^^ - 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) - -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/urllib3_client.py", line 17, in - r = http.request("GET", "http://httpbin.org/status/404") - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/urllib3/_request_methods.py", line 135, in request - return self.request_encode_url( - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/urllib3/_request_methods.py", line 182, in request_encode_url - return self.urlopen(method, url, **extra_kw) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/urllib3/poolmanager.py", line 443, in urlopen - response = conn.urlopen(method, u.request_uri, **kw) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen - return self.urlopen( - ^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen - return self.urlopen( - ^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen - return self.urlopen( - ^^^^^^^^^^^^^ - 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/404 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) -________________________ test_examples[network_mode.py] ________________________ + 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 "/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): + ^^^^^^^^^^^^^^^^^^^^^^^^^ +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): @@ -1434,11 +1470,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 @@ -1473,7 +1512,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: @@ -1481,32 +1520,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) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1521,10 +1548,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): @@ -1533,14 +1560,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 @@ -1575,7 +1599,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: @@ -1583,20 +1607,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) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1611,10 +1647,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: /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_requests_get _______________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -1662,7 +1698,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) @@ -1900,7 +1936,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -1916,13 +1952,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 @@ -2004,9 +2040,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, @@ -2100,7 +2136,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 @@ -2124,7 +2160,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -2218,12 +2254,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. @@ -2271,7 +2307,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) @@ -2509,7 +2545,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -2525,13 +2561,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 @@ -2613,9 +2649,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, @@ -2709,7 +2745,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 @@ -2733,7 +2769,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -2827,12 +2863,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. @@ -2880,7 +2916,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) @@ -3118,7 +3154,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -3134,13 +3170,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 @@ -3222,9 +3258,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, @@ -3318,7 +3354,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 @@ -3342,7 +3378,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -3436,13 +3472,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:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -3456,12 +3492,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:07] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' -url_500 = 'http://127.0.0.1:46403/status/500' +self = +url_404 = 'http://127.0.0.1:43623/status/404' +url_500 = 'http://127.0.0.1:43623/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -3481,12 +3517,12 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:07] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [13/Jan/2025 06:06:07] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardAiohttp.test_network_mode_hostname ________________ -self = -req = , traces = [] +self = +req = , traces = [] timeout = ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=30, ceil_threshold=5) async def _create_direct_connection( @@ -3557,8 +3593,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:46403/status/401' +self = +url_401 = 'http://127.0.0.1:43623/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -3594,8 +3630,8 @@ _, proto = await self._create_direct_connection(req, traces, timeout) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -req = , traces = [] +self = +req = , traces = [] timeout = ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=30, ceil_threshold=5) async def _create_direct_connection( @@ -3633,11 +3669,11 @@ /usr/lib/python3/dist-packages/aiohttp/connector.py:1341: ClientConnectorDNSError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:07] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardAiohttp.test_multiple_network_filters _______________ -self = -url_401 = 'http://127.0.0.1:46403/status/401' +self = +url_401 = 'http://127.0.0.1:43623/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -3673,13 +3709,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:08] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:08] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:08] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardAiohttp.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -3696,11 +3732,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:08] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -3715,11 +3751,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:08] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAiohttp.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -3737,11 +3773,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:08] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardAiohttp.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -3758,11 +3794,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:08] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAiohttp.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -3776,11 +3812,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:08] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardAiohttp.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -3795,11 +3831,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:08] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAiohttp.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -3815,11 +3851,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:08] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAiohttp.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -3831,11 +3867,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:08] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -3849,12 +3885,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:08] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_network_mode ___________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' -url_500 = 'http://127.0.0.1:46403/status/500' +self = +url_404 = 'http://127.0.0.1:43623/status/404' +url_500 = 'http://127.0.0.1:43623/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -3874,8 +3910,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:08] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [13/Jan/2025 06:06:08] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAsyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -3921,8 +3957,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:46403/status/401' +self = +url_401 = 'http://127.0.0.1:43623/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -3991,11 +4027,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:08] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardAsyncHttpx.test_multiple_network_filters _____________ -self = -url_401 = 'http://127.0.0.1:46403/status/401' +self = +url_401 = 'http://127.0.0.1:43623/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -4031,13 +4067,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:09] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:09] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:09] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardAsyncHttpx.test_json_request ___________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -4054,11 +4090,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:09] "GET /status/404 HTTP/1.1" 404 0 __________________ TestStandardAsyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -4073,11 +4109,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:09] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAsyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -4095,11 +4131,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:10] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -4116,11 +4152,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:10] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAsyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -4134,11 +4170,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:10] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -4153,11 +4189,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:31] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:10] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_mutli_value_response_headers ___________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -4173,11 +4209,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:10] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -4189,11 +4225,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:10] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -4207,12 +4243,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:10] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' -url_500 = 'http://127.0.0.1:46403/status/500' +self = +url_404 = 'http://127.0.0.1:43623/status/404' +url_500 = 'http://127.0.0.1:43623/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -4232,8 +4268,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:10] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [13/Jan/2025 06:06:10] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardSyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -4277,8 +4313,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:46403/status/401' +self = +url_401 = 'http://127.0.0.1:43623/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -4345,11 +4381,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:10] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardSyncHttpx.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:46403/status/401' +self = +url_401 = 'http://127.0.0.1:43623/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -4385,13 +4421,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:11] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:11] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:11] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardSyncHttpx.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -4408,11 +4444,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:11] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -4427,11 +4463,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:11] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardSyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -4449,11 +4485,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:11] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardSyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -4470,11 +4506,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:11] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardSyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -4488,11 +4524,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:11] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -4507,11 +4543,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:11] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardSyncHttpx.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -4527,11 +4563,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:12] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardSyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -4543,10 +4579,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:12] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_sync ___________________________________ -URL = 'http://127.0.0.1:46403/status/404' +URL = 'http://127.0.0.1:43623/status/404' def test_sync(URL): pook.get(URL).times(1).reply(200).body("123") @@ -4559,10 +4595,10 @@ tests/unit/interceptors/httpx_test.py:43: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:12] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_json ___________________________________ -URL = 'http://127.0.0.1:46403/status/404' +URL = 'http://127.0.0.1:43623/status/404' def test_json(URL): ( @@ -4581,10 +4617,10 @@ tests/unit/interceptors/httpx_test.py:67: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "POST /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:12] "POST /status/404 HTTP/1.1" 404 0 __________________________ test_streaming[iter_bytes] __________________________ -URL = 'http://127.0.0.1:46403/status/404', response_method = 'iter_bytes' +URL = 'http://127.0.0.1:43623/status/404', response_method = 'iter_bytes' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -4601,10 +4637,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:12] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_streaming[iter_raw] ___________________________ -URL = 'http://127.0.0.1:46403/status/404', response_method = 'iter_raw' +URL = 'http://127.0.0.1:43623/status/404', response_method = 'iter_raw' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -4621,10 +4657,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:12] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_redirect_following ____________________________ -URL = 'http://127.0.0.1:46403/status/404' +URL = 'http://127.0.0.1:43623/status/404' def test_redirect_following(URL): urls = [URL, f"{URL}/redirected", f"{URL}/redirected_again"] @@ -4642,11 +4678,11 @@ tests/unit/interceptors/httpx_test.py:93: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:12] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -4660,12 +4696,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:12] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' -url_500 = 'http://127.0.0.1:46403/status/500' +self = +url_404 = 'http://127.0.0.1:43623/status/404' +url_500 = 'http://127.0.0.1:43623/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -4685,11 +4721,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:32] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Feb/2026 10:25:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:12] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [13/Jan/2025 06:06:12] "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. @@ -4737,7 +4773,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> @@ -4973,7 +5009,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -4989,14 +5025,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:46403/status/401' +self = +url_401 = 'http://127.0.0.1:43623/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -5038,9 +5074,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, @@ -5134,19 +5170,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 - - [14/Feb/2026 10:25:32] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:12] "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:46403/status/401' +self = +url_401 = 'http://127.0.0.1:43623/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -5182,13 +5218,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardUrllib3.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -5205,11 +5241,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -5224,11 +5260,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardUrllib3.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -5246,11 +5282,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardUrllib3.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -5267,11 +5303,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardUrllib3.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -5285,11 +5321,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -5304,11 +5340,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardUrllib3.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -5324,11 +5360,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardUrllib3.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -5340,11 +5376,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -5358,12 +5394,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' -url_500 = 'http://127.0.0.1:46403/status/500' +self = +url_404 = 'http://127.0.0.1:43623/status/404' +url_500 = 'http://127.0.0.1:43623/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -5383,11 +5419,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "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. @@ -5435,7 +5471,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) @@ -5673,7 +5709,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -5689,13 +5725,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 @@ -5777,9 +5813,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, @@ -5873,14 +5909,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:46403/status/401' +self = +url_401 = 'http://127.0.0.1:43623/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -5912,7 +5948,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -6006,15 +6042,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 - - [14/Feb/2026 10:25:33] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardRequests.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:46403/status/401' +self = +url_401 = 'http://127.0.0.1:43623/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -6050,13 +6086,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardRequests.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -6073,11 +6109,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardRequests.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -6092,11 +6128,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardRequests.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -6114,11 +6150,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -6135,11 +6171,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardRequests.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -6153,11 +6189,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -6172,11 +6208,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -6192,11 +6228,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -6208,10 +6244,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:13] "GET /status/404 HTTP/1.1" 404 0 ____________________________ test_post_with_headers ____________________________ -URL = 'http://127.0.0.1:46403/foo' +URL = 'http://127.0.0.1:43623/foo' @pytest.mark.pook def test_post_with_headers(URL): @@ -6220,15 +6256,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 - - [14/Feb/2026 10:25:33] "POST /foo HTTP/1.1" 404 207 +127.0.0.1 - - [13/Jan/2025 06:06:14] "POST /foo HTTP/1.1" 404 207 _____________________ TestUrllib.test_activate_deactivate ______________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -6242,12 +6278,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:14] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_network_mode _________________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' -url_500 = 'http://127.0.0.1:46403/status/500' +self = +url_404 = 'http://127.0.0.1:43623/status/404' +url_500 = 'http://127.0.0.1:43623/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -6267,14 +6303,14 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:14] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [13/Jan/2025 06:06:14] "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): @@ -6366,8 +6402,8 @@ During handling of the above exception, another exception occurred: -self = -url_401 = 'http://127.0.0.1:46403/status/401' +self = +url_401 = 'http://127.0.0.1:43623/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -6403,10 +6439,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): @@ -6458,11 +6494,11 @@ /usr/lib/python3.12/urllib/request.py:1347: URLError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:14] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestUrllib.test_multiple_network_filters ___________________ -self = -url_401 = 'http://127.0.0.1:46403/status/401' +self = +url_401 = 'http://127.0.0.1:43623/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -6498,13 +6534,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:14] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:14] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:14] "GET /status/401 HTTP/1.1" 401 0 _________________________ TestUrllib.test_json_request _________________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -6521,11 +6557,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:14] "GET /status/404 HTTP/1.1" 404 0 ________________________ TestUrllib.test_json_response _________________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -6539,12 +6575,10 @@ E AssertionError tests/unit/interceptors/base.py:178: AssertionError ------------------------------ Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 __________________ TestUrllib.test_json_request_and_response ___________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -6562,11 +6596,12 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:14] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:14] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_header_sent __________________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -6580,12 +6615,10 @@ E ValueError: not enough values to unpack (expected 3, got 2) tests/unit/interceptors/base.py:205: ValueError ------------------------------ Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestUrllib.test_mocked_response_headers ____________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -6597,11 +6630,11 @@ tests/unit/interceptors/base.py:215: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:14] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestUrllib.test_mutli_value_headers ______________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -6616,11 +6649,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:14] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_mutli_value_response_headers _________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -6634,11 +6667,11 @@ tests/unit/interceptors/base.py:237: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:14] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_unmatched_headers_none_sent __________________ -self = -url_404 = 'http://127.0.0.1:46403/status/404' +self = +url_404 = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -6650,14 +6683,14 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:14] "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): @@ -6724,7 +6757,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, @@ -6780,11 +6813,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): @@ -6837,10 +6870,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): @@ -6951,10 +6984,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): @@ -7195,7 +7228,7 @@ tests/unit/matchers/headers_test.py:171: AssertionError ______________________ test_param_exists_empty_disallowed ______________________ -URL = 'http://127.0.0.1:46403/status/404' +URL = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_param_exists_empty_disallowed(URL): @@ -7218,10 +7251,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) @@ -7229,10 +7262,10 @@ /usr/lib/python3.12/urllib/request.py:639: HTTPError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:34] "GET /status/404?x HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:16] "GET /status/404?x HTTP/1.1" 404 0 _______________________ test_param_exists_empty_allowed ________________________ -URL = 'http://127.0.0.1:46403/status/404' +URL = 'http://127.0.0.1:43623/status/404' @pytest.mark.pook def test_param_exists_empty_allowed(URL): @@ -7254,16 +7287,18 @@ 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) E urllib.error.HTTPError: HTTP Error 404: NOT FOUND /usr/lib/python3.12/urllib/request.py:639: HTTPError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [13/Jan/2025 06:06:16] "GET /status/404?x HTTP/1.1" 404 0 ________________________ test_mock_constructor[params] _________________________ param_kwargs = {'params': {'x': '1'}}, query_string = '?x=1' @@ -7332,7 +7367,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 +7457,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,12 +7624,12 @@ -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ -FAILED tests/integration/examples_test.py::test_examples[aiohttp_client.py] +FAILED tests/integration/examples_test.py::test_examples[urllib3_client.py] FAILED tests/integration/examples_test.py::test_examples[mock_context_manager.py] FAILED tests/integration/examples_test.py::test_examples[network_mode_httpx.py] -FAILED tests/integration/examples_test.py::test_examples[urllib3_client.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/pook_requests_test.py::test_requests_get - requests.... FAILED tests/integration/pook_requests_test.py::test_requests_match_url - req... FAILED tests/integration/pook_requests_test.py::test_requests_match_query_params @@ -7684,7 +7719,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 18.87s ====== +===== 95 failed, 124 passed, 10 skipped, 3 xfailed, 42 warnings in 44.99s ====== 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,34 +7727,34 @@ 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, typeguard-4.4.1, httpbin-2.1.0, cov-5.0.0, anyio-4.7.0 +plugins: pook-2.1.3, typeguard-4.4.1, cov-5.0.0, anyio-4.7.0, httpbin-2.1.0 collected 232 items tests/integration/engines_test.py .. [ 0%] -tests/integration/examples_test.py .....F..F....F.F.F.F... [ 10%] +tests/integration/examples_test.py F.F....F.........F...FF [ 10%] tests/integration/pook_requests_test.py FFF [ 12%] tests/unit/api_test.py ......s [ 15%] tests/unit/engine_test.py .. [ 15%] tests/unit/exceptions_test.py . [ 16%] tests/unit/interceptors/aiohttp_test.py FFFFFFFFFFFFssssssss [ 25%] -tests/unit/interceptors/httpx_test.py FFFFFFFFFFFFFFFFFFFFFFFFFsFFFF [ 37%] +tests/unit/interceptors/httpx_test.py FFFFFF127.0.0.1 - - [13/Jan/2025 06:06:52] "GET /status/404 HTTP/1.1" 404 0 +FFFFFFFFFFFFFFFFFFFsFFFF [ 37%] tests/unit/interceptors/module_test.py . [ 38%] tests/unit/interceptors/urllib3_test.py FFFFFFFFFFFFFFFFFFFFFFFF........ [ 52%] F [ 52%] tests/unit/interceptors/urllib_test.py FFFFFFFFFFFFFF [ 58%] tests/unit/matchers/base_test.py .... [ 60%] tests/unit/matchers/headers_test.py ...........FF............ [ 71%] -tests/unit/matchers/query_test.py F127.0.0.1 - - [14/Feb/2026 10:25:53] "GET /status/404?x HTTP/1.1" 404 0 -F [ 71%] +tests/unit/matchers/query_test.py FF [ 71%] tests/unit/matchers/url_test.py ............................ [ 84%] tests/unit/mock_engine_test.py ....x [ 86%] tests/unit/mock_test.py .FxxF......................... [ 99%] tests/unit/regex_test.py .. [100%] =================================== FAILURES =================================== -_______________________ test_examples[aiohttp_client.py] _______________________ +_______________________ test_examples[urllib3_client.py] _______________________ -example = 'aiohttp_client.py' +example = 'urllib3_client.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -7728,25 +7763,123 @@ > 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/urllib3_client.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError +----------------------------- Captured stdout call ----------------------------- +#1 status: 204 ----------------------------- 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/urllib3/connection.py", line 199, in _new_conn + sock = connection.create_connection( + (self._dns_host, self.port), + ...<2 lines>... + socket_options=self.socket_options, + ) + File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection + for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): + ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.13/socket.py", line 975, in getaddrinfo + for res in _socket.getaddrinfo(host, port, family, type, proto, flags): + ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +socket.gaierror: [Errno -3] Temporary failure in name resolution + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 789, in urlopen + response = self._make_request( + conn, + ...<10 lines>... + **response_kw, + ) + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 495, in _make_request + conn.request( + ~~~~~~~~~~~~^ + method, + ^^^^^^^ + ...<6 lines>... + enforce_content_length=enforce_content_length, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ) + ^ + File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 441, in request + self.endheaders() + ~~~~~~~~~~~~~~~^^ + File "/usr/lib/python3.13/http/client.py", line 1331, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.13/http/client.py", line 1091, in _send_output + self.send(msg) + ~~~~~~~~~^^^^^ + File "/usr/lib/python3.13/http/client.py", line 1035, in send + self.connect() + ~~~~~~~~~~~~^^ + File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 279, in connect + self.sock = self._new_conn() + ~~~~~~~~~~~~~~^^ + 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) + +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/urllib3_client.py", line 17, in + r = http.request("GET", "http://httpbin.org/status/404") + File "/usr/lib/python3/dist-packages/urllib3/_request_methods.py", line 135, in request + return self.request_encode_url( + ~~~~~~~~~~~~~~~~~~~~~~~^ + method, + ^^^^^^^ + ...<3 lines>... + **urlopen_kw, + ^^^^^^^^^^^^^ + ) + ^ + File "/usr/lib/python3/dist-packages/urllib3/_request_methods.py", line 182, in request_encode_url + return self.urlopen(method, url, **extra_kw) + ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/urllib3/poolmanager.py", line 443, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen + return self.urlopen( + ~~~~~~~~~~~~^ + method, + ^^^^^^^ + ...<13 lines>... + **response_kw, + ^^^^^^^^^^^^^^ + ) + ^ + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen + return self.urlopen( + ~~~~~~~~~~~~^ + method, + ^^^^^^^ + ...<13 lines>... + **response_kw, + ^^^^^^^^^^^^^^ + ) + ^ + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen + return self.urlopen( + ~~~~~~~~~~~~^ + method, + ^^^^^^^ + ...<13 lines>... + **response_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] + ) + 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[mock_context_manager.py] ____________________ example = 'mock_context_manager.py' @@ -7827,7 +7960,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: @@ -7845,7 +7978,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: @@ -7863,7 +7996,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: /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_examples[network_mode_httpx.py] _____________________ example = 'network_mode_httpx.py' @@ -7960,9 +8093,9 @@ 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[urllib3_client.py] _______________________ +_______________________ test_examples[aiohttp_client.py] _______________________ -example = 'urllib3_client.py' +example = 'aiohttp_client.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -7971,126 +8104,28 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/urllib3_client.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 ----------------------------- -#1 status: 204 ----------------------------- 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/urllib3/connection.py", line 199, in _new_conn - sock = connection.create_connection( - (self._dns_host, self.port), - ...<2 lines>... - socket_options=self.socket_options, - ) - File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection - for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): - ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3.13/socket.py", line 975, in getaddrinfo - for res in _socket.getaddrinfo(host, port, family, type, proto, flags): - ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -socket.gaierror: [Errno -3] Temporary failure in name resolution - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 789, in urlopen - response = self._make_request( - conn, - ...<10 lines>... - **response_kw, - ) - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 495, in _make_request - conn.request( - ~~~~~~~~~~~~^ - method, - ^^^^^^^ - ...<6 lines>... - enforce_content_length=enforce_content_length, - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ) - ^ - File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 441, in request - self.endheaders() - ~~~~~~~~~~~~~~~^^ - File "/usr/lib/python3.13/http/client.py", line 1331, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3.13/http/client.py", line 1091, in _send_output - self.send(msg) - ~~~~~~~~~^^^^^ - File "/usr/lib/python3.13/http/client.py", line 1035, in send - self.connect() - ~~~~~~~~~~~~^^ - File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 279, in connect - self.sock = self._new_conn() - ~~~~~~~~~~~~~~^^ - 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) - -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/urllib3_client.py", line 17, in - r = http.request("GET", "http://httpbin.org/status/404") - File "/usr/lib/python3/dist-packages/urllib3/_request_methods.py", line 135, in request - return self.request_encode_url( - ~~~~~~~~~~~~~~~~~~~~~~~^ - method, - ^^^^^^^ - ...<3 lines>... - **urlopen_kw, - ^^^^^^^^^^^^^ - ) - ^ - File "/usr/lib/python3/dist-packages/urllib3/_request_methods.py", line 182, in request_encode_url - return self.urlopen(method, url, **extra_kw) - ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/urllib3/poolmanager.py", line 443, in urlopen - response = conn.urlopen(method, u.request_uri, **kw) - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen - return self.urlopen( - ~~~~~~~~~~~~^ - method, - ^^^^^^^ - ...<13 lines>... - **response_kw, - ^^^^^^^^^^^^^^ - ) - ^ - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen - return self.urlopen( - ~~~~~~~~~~~~^ - method, - ^^^^^^^ - ...<13 lines>... - **response_kw, - ^^^^^^^^^^^^^^ - ) - ^ - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen - return self.urlopen( - ~~~~~~~~~~~~^ - method, - ^^^^^^^ - ...<13 lines>... - **response_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] - ) - 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[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): @@ -8099,11 +8134,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 @@ -8156,7 +8194,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: @@ -8167,24 +8205,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] @@ -8192,13 +8212,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 @@ -8210,10 +8230,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): @@ -8222,14 +8242,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 @@ -8282,7 +8299,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: @@ -8293,6 +8310,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] @@ -8300,13 +8335,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 @@ -8318,10 +8353,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: /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_requests_get _______________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -8369,7 +8404,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) @@ -8607,7 +8642,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -8623,13 +8658,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 @@ -8711,9 +8746,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, @@ -8807,7 +8842,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 @@ -8831,7 +8866,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -8925,12 +8960,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. @@ -8978,7 +9013,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) @@ -9216,7 +9251,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -9232,13 +9267,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 @@ -9320,9 +9355,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, @@ -9416,7 +9451,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 @@ -9440,7 +9475,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -9534,12 +9569,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. @@ -9587,7 +9622,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) @@ -9825,7 +9860,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -9841,13 +9876,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 @@ -9929,9 +9964,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, @@ -10025,7 +10060,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 @@ -10049,7 +10084,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -10143,13 +10178,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:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -10163,12 +10198,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:49] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:50] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' -url_500 = 'http://127.0.0.1:39447/status/500' +self = +url_404 = 'http://127.0.0.1:37509/status/404' +url_500 = 'http://127.0.0.1:37509/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -10188,12 +10223,12 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:49] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Feb/2026 10:25:49] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:50] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [13/Jan/2025 06:06:50] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardAiohttp.test_network_mode_hostname ________________ -self = -req = , traces = [] +self = +req = , traces = [] timeout = ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=30, ceil_threshold=5) async def _create_direct_connection( @@ -10264,8 +10299,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:39447/status/401' +self = +url_401 = 'http://127.0.0.1:37509/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -10301,8 +10336,8 @@ _, proto = await self._create_direct_connection(req, traces, timeout) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -req = , traces = [] +self = +req = , traces = [] timeout = ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=30, ceil_threshold=5) async def _create_direct_connection( @@ -10340,11 +10375,11 @@ /usr/lib/python3/dist-packages/aiohttp/connector.py:1341: ClientConnectorDNSError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:49] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:50] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardAiohttp.test_multiple_network_filters _______________ -self = -url_401 = 'http://127.0.0.1:39447/status/401' +self = +url_401 = 'http://127.0.0.1:37509/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -10380,13 +10415,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:50] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:50] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:50] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardAiohttp.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -10403,11 +10438,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:50] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -10422,11 +10457,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:50] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAiohttp.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -10444,11 +10479,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:50] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardAiohttp.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -10465,11 +10500,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:50] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAiohttp.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -10483,11 +10518,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:50] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardAiohttp.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -10502,11 +10537,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:50] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAiohttp.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -10522,11 +10557,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:50] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAiohttp.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -10538,11 +10573,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:50] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -10556,12 +10591,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:51] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_network_mode ___________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' -url_500 = 'http://127.0.0.1:39447/status/500' +self = +url_404 = 'http://127.0.0.1:37509/status/404' +url_500 = 'http://127.0.0.1:37509/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -10581,8 +10616,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:51] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [13/Jan/2025 06:06:51] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAsyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -10628,8 +10663,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:39447/status/401' +self = +url_401 = 'http://127.0.0.1:37509/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -10698,11 +10733,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:51] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardAsyncHttpx.test_multiple_network_filters _____________ -self = -url_401 = 'http://127.0.0.1:39447/status/401' +self = +url_401 = 'http://127.0.0.1:37509/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -10738,13 +10773,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:51] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:51] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:51] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardAsyncHttpx.test_json_request ___________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -10761,11 +10796,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:52] "GET /status/404 HTTP/1.1" 404 0 __________________ TestStandardAsyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -10780,11 +10815,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:52] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAsyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -10801,12 +10836,10 @@ E AssertionError tests/unit/interceptors/base.py:193: AssertionError ------------------------------ Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -10823,11 +10856,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:52] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAsyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -10841,11 +10874,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:52] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -10860,11 +10893,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:52] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_mutli_value_response_headers ___________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -10880,11 +10913,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:52] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -10896,11 +10929,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:52] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -10914,12 +10947,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:52] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' -url_500 = 'http://127.0.0.1:39447/status/500' +self = +url_404 = 'http://127.0.0.1:37509/status/404' +url_500 = 'http://127.0.0.1:37509/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -10939,8 +10972,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:50] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Feb/2026 10:25:50] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:52] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [13/Jan/2025 06:06:52] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardSyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -10984,8 +11017,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:39447/status/401' +self = +url_401 = 'http://127.0.0.1:37509/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -11052,11 +11085,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:52] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardSyncHttpx.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:39447/status/401' +self = +url_401 = 'http://127.0.0.1:37509/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -11092,13 +11125,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:53] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:53] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:53] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardSyncHttpx.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -11115,11 +11148,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:53] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -11134,11 +11167,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:53] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardSyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -11156,11 +11189,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:53] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardSyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -11177,11 +11210,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:53] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardSyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -11195,11 +11228,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:53] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -11214,11 +11247,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:53] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardSyncHttpx.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -11234,11 +11267,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardSyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -11250,10 +11283,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_sync ___________________________________ -URL = 'http://127.0.0.1:39447/status/404' +URL = 'http://127.0.0.1:37509/status/404' def test_sync(URL): pook.get(URL).times(1).reply(200).body("123") @@ -11266,10 +11299,10 @@ tests/unit/interceptors/httpx_test.py:43: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_json ___________________________________ -URL = 'http://127.0.0.1:39447/status/404' +URL = 'http://127.0.0.1:37509/status/404' def test_json(URL): ( @@ -11288,10 +11321,10 @@ tests/unit/interceptors/httpx_test.py:67: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "POST /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "POST /status/404 HTTP/1.1" 404 0 __________________________ test_streaming[iter_bytes] __________________________ -URL = 'http://127.0.0.1:39447/status/404', response_method = 'iter_bytes' +URL = 'http://127.0.0.1:37509/status/404', response_method = 'iter_bytes' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -11308,10 +11341,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_streaming[iter_raw] ___________________________ -URL = 'http://127.0.0.1:39447/status/404', response_method = 'iter_raw' +URL = 'http://127.0.0.1:37509/status/404', response_method = 'iter_raw' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -11328,10 +11361,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_redirect_following ____________________________ -URL = 'http://127.0.0.1:39447/status/404' +URL = 'http://127.0.0.1:37509/status/404' def test_redirect_following(URL): urls = [URL, f"{URL}/redirected", f"{URL}/redirected_again"] @@ -11349,11 +11382,11 @@ tests/unit/interceptors/httpx_test.py:93: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -11367,12 +11400,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' -url_500 = 'http://127.0.0.1:39447/status/500' +self = +url_404 = 'http://127.0.0.1:37509/status/404' +url_500 = 'http://127.0.0.1:37509/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -11392,11 +11425,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "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. @@ -11444,7 +11477,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> @@ -11680,7 +11713,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -11696,14 +11729,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:39447/status/401' +self = +url_401 = 'http://127.0.0.1:37509/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -11745,9 +11778,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, @@ -11841,19 +11874,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 - - [14/Feb/2026 10:25:51] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "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:39447/status/401' +self = +url_401 = 'http://127.0.0.1:37509/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -11889,13 +11922,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardUrllib3.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -11912,11 +11945,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -11931,11 +11964,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardUrllib3.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -11953,11 +11986,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardUrllib3.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -11974,11 +12007,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardUrllib3.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -11992,11 +12025,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -12011,11 +12044,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardUrllib3.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -12031,11 +12064,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardUrllib3.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -12047,11 +12080,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -12065,12 +12098,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' -url_500 = 'http://127.0.0.1:39447/status/500' +self = +url_404 = 'http://127.0.0.1:37509/status/404' +url_500 = 'http://127.0.0.1:37509/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -12090,11 +12123,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:51] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Feb/2026 10:25:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "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. @@ -12142,7 +12175,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) @@ -12380,7 +12413,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -12396,13 +12429,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 @@ -12484,9 +12517,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, @@ -12580,14 +12613,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:39447/status/401' +self = +url_401 = 'http://127.0.0.1:37509/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -12619,7 +12652,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -12713,15 +12746,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 - - [14/Feb/2026 10:25:51] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:54] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardRequests.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:39447/status/401' +self = +url_401 = 'http://127.0.0.1:37509/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -12757,13 +12790,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:55] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:55] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:55] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardRequests.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -12780,11 +12813,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:55] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardRequests.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -12799,11 +12832,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:55] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardRequests.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -12821,11 +12854,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:55] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -12842,11 +12875,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:55] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardRequests.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -12860,11 +12893,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:55] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -12879,11 +12912,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:55] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -12899,11 +12932,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:55] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -12915,10 +12948,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:55] "GET /status/404 HTTP/1.1" 404 0 ____________________________ test_post_with_headers ____________________________ -URL = 'http://127.0.0.1:39447/foo' +URL = 'http://127.0.0.1:37509/foo' @pytest.mark.pook def test_post_with_headers(URL): @@ -12927,15 +12960,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 - - [14/Feb/2026 10:25:52] "POST /foo HTTP/1.1" 404 207 +127.0.0.1 - - [13/Jan/2025 06:06:55] "POST /foo HTTP/1.1" 404 207 _____________________ TestUrllib.test_activate_deactivate ______________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -12949,12 +12982,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:55] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_network_mode _________________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' -url_500 = 'http://127.0.0.1:39447/status/500' +self = +url_404 = 'http://127.0.0.1:37509/status/404' +url_500 = 'http://127.0.0.1:37509/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -12974,14 +13007,14 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:55] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [13/Jan/2025 06:06:55] "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): @@ -13073,8 +13106,8 @@ During handling of the above exception, another exception occurred: -self = -url_401 = 'http://127.0.0.1:39447/status/401' +self = +url_401 = 'http://127.0.0.1:37509/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -13110,10 +13143,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,11 +13198,11 @@ /usr/lib/python3.13/urllib/request.py:1322: URLError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:55] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestUrllib.test_multiple_network_filters ___________________ -self = -url_401 = 'http://127.0.0.1:39447/status/401' +self = +url_401 = 'http://127.0.0.1:37509/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -13205,13 +13238,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:56] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:56] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [13/Jan/2025 06:06:56] "GET /status/401 HTTP/1.1" 401 0 _________________________ TestUrllib.test_json_request _________________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -13228,11 +13261,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:56] "GET /status/404 HTTP/1.1" 404 0 ________________________ TestUrllib.test_json_response _________________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -13247,11 +13280,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:56] "GET /status/404 HTTP/1.1" 404 0 __________________ TestUrllib.test_json_request_and_response ___________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -13269,11 +13302,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:56] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_header_sent __________________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -13288,11 +13321,11 @@ tests/unit/interceptors/base.py:205: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:56] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestUrllib.test_mocked_response_headers ____________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -13304,11 +13337,11 @@ tests/unit/interceptors/base.py:215: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:56] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestUrllib.test_mutli_value_headers ______________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -13323,11 +13356,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:56] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_mutli_value_response_headers _________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -13341,11 +13374,11 @@ tests/unit/interceptors/base.py:237: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:56] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_unmatched_headers_none_sent __________________ -self = -url_404 = 'http://127.0.0.1:39447/status/404' +self = +url_404 = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -13357,14 +13390,14 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:56] "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): @@ -13431,7 +13464,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, @@ -13487,11 +13520,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): @@ -13544,10 +13577,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): @@ -13658,10 +13691,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): @@ -13902,7 +13935,7 @@ tests/unit/matchers/headers_test.py:171: AssertionError ______________________ test_param_exists_empty_disallowed ______________________ -URL = 'http://127.0.0.1:39447/status/404' +URL = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_param_exists_empty_disallowed(URL): @@ -13925,10 +13958,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) @@ -13936,10 +13969,10 @@ /usr/lib/python3.13/urllib/request.py:613: HTTPError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Feb/2026 10:25:52] "GET /status/404?x HTTP/1.1" 404 0 +127.0.0.1 - - [13/Jan/2025 06:06:57] "GET /status/404?x HTTP/1.1" 404 0 _______________________ test_param_exists_empty_allowed ________________________ -URL = 'http://127.0.0.1:39447/status/404' +URL = 'http://127.0.0.1:37509/status/404' @pytest.mark.pook def test_param_exists_empty_allowed(URL): @@ -13961,16 +13994,18 @@ 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) E urllib.error.HTTPError: HTTP Error 404: NOT FOUND /usr/lib/python3.13/urllib/request.py:613: HTTPError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [13/Jan/2025 06:06:57] "GET /status/404?x HTTP/1.1" 404 0 ________________________ test_mock_constructor[params] _________________________ param_kwargs = {'params': {'x': '1'}}, query_string = '?x=1' @@ -14039,7 +14074,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): @@ -14129,7 +14164,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): @@ -14296,12 +14331,12 @@ -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ -FAILED tests/integration/examples_test.py::test_examples[aiohttp_client.py] +FAILED tests/integration/examples_test.py::test_examples[urllib3_client.py] FAILED tests/integration/examples_test.py::test_examples[mock_context_manager.py] FAILED tests/integration/examples_test.py::test_examples[network_mode_httpx.py] -FAILED tests/integration/examples_test.py::test_examples[urllib3_client.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/pook_requests_test.py::test_requests_get - requests.... FAILED tests/integration/pook_requests_test.py::test_requests_match_url - req... FAILED tests/integration/pook_requests_test.py::test_requests_match_query_params @@ -14391,7 +14426,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 17.79s ====== +===== 95 failed, 124 passed, 10 skipped, 3 xfailed, 42 warnings in 38.59s ====== 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' @@ -14419,8 +14454,8 @@ dpkg-gencontrol: warning: package python-pook-doc: substitution variable ${sphinxdoc:Built-Using} unused, but is defined dh_md5sums -O--buildsystem=pybuild dh_builddeb -O--buildsystem=pybuild -dpkg-deb: building package 'python3-pook' in '../python3-pook_2.1.3-1_all.deb'. dpkg-deb: building package 'python-pook-doc' in '../python-pook-doc_2.1.3-1_all.deb'. +dpkg-deb: building package 'python3-pook' in '../python3-pook_2.1.3-1_all.deb'. dpkg-genbuildinfo --build=binary -O../python-pook_2.1.3-1_i386.buildinfo dpkg-genchanges --build=binary -O../python-pook_2.1.3-1_i386.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -14429,12 +14464,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/14717/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/14717/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/70022 and its subdirectories -I: Current time: Sat Feb 14 10:25:58 -12 2026 -I: pbuilder-time-stamp: 1771107958 +I: removing directory /srv/workspace/pbuilder/14717 and its subdirectories +I: Current time: Mon Jan 13 06:07:10 +14 2025 +I: pbuilder-time-stamp: 1736698030