Diff of the two buildlogs: -- --- b1/build.log 2025-04-14 08:12:43.871781155 +0000 +++ b2/build.log 2025-04-14 08:14:55.036915677 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun May 17 02:33:16 -12 2026 -I: pbuilder-time-stamp: 1779028396 +I: Current time: Mon Apr 14 22:12:46 +14 2025 +I: pbuilder-time-stamp: 1744618366 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -25,51 +25,83 @@ 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/873768/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3277756/tmp/hooks/D01_modify_environment starting +debug: Running on infom01-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Apr 14 08:12 /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/3277756/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3277756/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='amd64' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='332409f9f1fc4739af6344958780436a' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='873768' - PS1='# ' - PS2='> ' + INVOCATION_ID=3ad937db5ff04d34b236e782416058eb + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=3277756 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.lN6G6XCr/pbuilderrc_Ya11 --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.lN6G6XCr/b1 --logfile b1/build.log python-pook_2.1.3-2.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' + 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.lN6G6XCr/pbuilderrc_h7c4 --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.lN6G6XCr/b2 --logfile b2/build.log python-pook_2.1.3-2.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' I: uname -a - Linux infom02-amd64 6.12.12+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.12-1~bpo12+1 (2025-02-23) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-33-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.133-1 (2025-04-10) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Mar 4 2025 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/873768/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Mar 4 11:20 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3277756/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -290,7 +322,7 @@ Get: 149 http://deb.debian.org/debian unstable/main amd64 python3-sphinxcontrib.jquery all 4.1-5 [7348 B] Get: 150 http://deb.debian.org/debian unstable/main amd64 python3-sphinx-rtd-theme all 3.0.2+dfsg-2 [29.7 kB] Get: 151 http://deb.debian.org/debian unstable/main amd64 python3-xmltodict all 0.13.0-1 [16.7 kB] -Fetched 41.0 MB in 1s (67.9 MB/s) +Fetched 41.0 MB in 0s (93.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 ... 19840 files and directories currently installed.) @@ -775,8 +807,8 @@ Setting up tzdata (2025b-2) ... Current default time zone: 'Etc/UTC' -Local time is now: Sun May 17 14:34:22 UTC 2026. -Universal Time is now: Sun May 17 14:34:22 UTC 2026. +Local time is now: Mon Apr 14 08:14:10 UTC 2025. +Universal Time is now: Mon Apr 14 08:14:10 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20240727.1) ... @@ -931,7 +963,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-2_source.changes +I: user script /srv/workspace/pbuilder/3277756/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/3277756/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-2_source.changes dpkg-buildpackage: info: source package python-pook dpkg-buildpackage: info: source version 2.1.3-2 dpkg-buildpackage: info: source distribution unstable @@ -981,8 +1017,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/documentation_options.js Writing evaluated template result to /build/reproducible-path/python-pook-2.1.3/build/html/_static/language_data.js +Writing evaluated template result to /build/reproducible-path/python-pook-2.1.3/build/html/_static/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/js/versions.js copying static files: done @@ -1028,29 +1064,21 @@ platform linux -- Python 3.13.3, pytest-8.3.5, 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, httpbin-2.1.0, cov-5.0.0, anyio-4.8.0, typeguard-4.4.2 +plugins: pook-2.1.3, httpbin-2.1.0, cov-5.0.0, typeguard-4.4.2, anyio-4.8.0 collected 232 items tests/integration/engines_test.py .. [ 0%] -tests/integration/examples_test.py .....F.F.FFF.....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 127.0.0.1 - - [17/May/2026 02:35:32] "GET /status/404 HTTP/1.1" 404 0 -FFFFFFFFFFFFssssssss [ 25%] -tests/unit/interceptors/httpx_test.py FFFFFFFFFFFFFFFFFFFFF127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/404 HTTP/1.1" 404 0 -FFFFsF127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 -FFF [ 37%] +tests/unit/interceptors/aiohttp_test.py FFFFFFFFFFFFssssssss [ 25%] +tests/unit/interceptors/httpx_test.py FFFFFFFFFFFFFFFFFFFFFFFFFsFFFF [ 37%] tests/unit/interceptors/module_test.py . [ 38%] -tests/unit/interceptors/urllib3_test.py FFFFFFF127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 -FFFFF127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 -FFFF127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 -F127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 -FFFFFFF........ [ 52%] +tests/unit/interceptors/urllib3_test.py FFFFFFFFFFFFFFFFFFFFFFFF........ [ 52%] F [ 52%] -tests/unit/interceptors/urllib_test.py FFFFFFFFFF127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 -FFFF [ 58%] +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 FF [ 71%] @@ -1060,9 +1088,9 @@ tests/unit/regex_test.py .. [100%] =================================== FAILURES =================================== -_______________________ test_examples[aiohttp_client.py] _______________________ +_____________________ test_examples[network_mode_httpx.py] _____________________ -example = 'aiohttp_client.py' +example = 'network_mode_httpx.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -1071,28 +1099,94 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/aiohttp_client.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/network_mode_httpx.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError +----------------------------- Captured stdout call ----------------------------- +Mock status: 201 ----------------------------- Captured stderr call ----------------------------- -/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py:30: DeprecationWarning: There is no current event loop - loop = asyncio.get_event_loop() Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py", line 31, in - loop.run_until_complete(main(loop)) - ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ - File "/usr/lib/python3.13/asyncio/base_events.py", line 719, 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[urllib3_client.py] _______________________ + File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions + yield + File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 250, in handle_request + resp = self._pool.handle_request(req) + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request + raise exc from None + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request + response = connection.handle_request( + pool_request.request + ) + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 101, in handle_request + raise exc + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 78, in handle_request + stream = self._connect(request) + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 124, in _connect + stream = self._network_backend.connect_tcp(**kwargs) + File "/usr/lib/python3/dist-packages/httpcore/_backends/sync.py", line 207, in connect_tcp + with map_exceptions(exc_map): + ~~~~~~~~~~~~~~^^^^^^^^^ + File "/usr/lib/python3.13/contextlib.py", line 162, in __exit__ + self.gen.throw(value) + ~~~~~~~~~~~~~~^^^^^^^ + File "/usr/lib/python3/dist-packages/httpcore/_exceptions.py", line 14, in map_exceptions + raise to_exc(exc) from exc +httpcore.ConnectError: [Errno -3] Temporary failure in name resolution -example = 'urllib3_client.py' +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/network_mode_httpx.py", line 22, in + res = httpx.get("http://httpbin.org/ip") + File "/usr/lib/python3/dist-packages/httpx/_api.py", line 195, in get + return request( + "GET", + ...<9 lines>... + trust_env=trust_env, + ) + File "/usr/lib/python3/dist-packages/httpx/_api.py", line 109, in request + return client.request( + ~~~~~~~~~~~~~~^ + method=method, + ^^^^^^^^^^^^^^ + ...<8 lines>... + follow_redirects=follow_redirects, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ) + ^ + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 825, in request + return self.send(request, auth=auth, follow_redirects=follow_redirects) + ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 914, in send + response = self._send_handling_auth( + request, + ...<2 lines>... + history=[], + ) + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 942, in _send_handling_auth + response = self._send_handling_redirects( + request, + follow_redirects=follow_redirects, + history=history, + ) + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 979, in _send_handling_redirects + response = self._send_single_request(request) + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 1014, in _send_single_request + response = transport.handle_request(request) + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/_httpx.py", line 141, in handle_request + return transport.handle_request(request) + ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 249, in handle_request + with map_httpcore_exceptions(): + ~~~~~~~~~~~~~~~~~~~~~~~^^ + File "/usr/lib/python3.13/contextlib.py", line 162, in __exit__ + self.gen.throw(value) + ~~~~~~~~~~~~~~^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions + raise mapped_exc(message) from exc +httpx.ConnectError: [Errno -3] Temporary failure in name resolution +____________________ test_examples[mock_context_manager.py] ____________________ + +example = 'mock_context_manager.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -1101,11 +1195,23 @@ > 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/mock_context_manager.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError ----------------------------- Captured stdout call ----------------------------- -#1 status: 204 +#1 Status: 403 +#1 Headers: {'pepe': 'lopez', 'Content-Type': 'application/json'} +#1 Body: {'error': 'not found'} +---------------- +#2 Status: 403 +#2 Headers: {'pepe': 'lopez', 'Content-Type': 'application/json'} +#2 Body: {'error': 'not found'} +---------------- +Mock is done: True +Mock matches: 2 +Is done: True +Pending mocks: [] +Unmatched requests: [] ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 198, in _new_conn @@ -1158,58 +1264,17 @@ ~~~~~~~~~~~~~~^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 205, 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: 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 871, in urlopen - return self.urlopen( - ~~~~~~~~~~~~^ - method, - ^^^^^^^ - ...<13 lines>... - **response_kw, - ^^^^^^^^^^^^^^ - ) - ^ - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 871, in urlopen - return self.urlopen( - ~~~~~~~~~~~~^ - method, - ^^^^^^^ - ...<13 lines>... - **response_kw, - ^^^^^^^^^^^^^^ - ) - ^ - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 871, in urlopen - return self.urlopen( - ~~~~~~~~~~~~^ - method, - ^^^^^^^ - ...<13 lines>... - **response_kw, - ^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/requests/adapters.py", line 667, in send + resp = conn.urlopen( + method=request.method, + ...<9 lines>... + chunked=chunked, ) - ^ File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in urlopen retries = retries.increment( method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2] @@ -1217,10 +1282,28 @@ 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] ____________________ +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)")) -example = 'mock_context_manager.py' +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/mock_context_manager.py", line 37, 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 + return session.request(method=method, url=url, **kwargs) + ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/requests/sessions.py", line 589, in request + resp = self.send(prep, **send_kwargs) + File "/usr/lib/python3/dist-packages/requests/sessions.py", line 703, in send + 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[urllib3_client.py] _______________________ + +example = 'urllib3_client.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -1229,23 +1312,11 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/mock_context_manager.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: 403 -#1 Headers: {'pepe': 'lopez', 'Content-Type': 'application/json'} -#1 Body: {'error': 'not found'} ----------------- -#2 Status: 403 -#2 Headers: {'pepe': 'lopez', 'Content-Type': 'application/json'} -#2 Body: {'error': 'not found'} ----------------- -Mock is done: True -Mock matches: 2 -Is done: True -Pending mocks: [] -Unmatched requests: [] +#1 status: 204 ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 198, in _new_conn @@ -1298,17 +1369,58 @@ ~~~~~~~~~~~~~~^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 205, 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: Traceback (most recent call last): - File "/usr/lib/python3/dist-packages/requests/adapters.py", line 667, in send - resp = conn.urlopen( - method=request.method, - ...<9 lines>... - chunked=chunked, + 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 871, in urlopen + return self.urlopen( + ~~~~~~~~~~~~^ + method, + ^^^^^^^ + ...<13 lines>... + **response_kw, + ^^^^^^^^^^^^^^ + ) + ^ + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 871, in urlopen + return self.urlopen( + ~~~~~~~~~~~~^ + method, + ^^^^^^^ + ...<13 lines>... + **response_kw, + ^^^^^^^^^^^^^^ + ) + ^ + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 871, in urlopen + return self.urlopen( + ~~~~~~~~~~~~^ + method, + ^^^^^^^ + ...<13 lines>... + **response_kw, + ^^^^^^^^^^^^^^ ) + ^ File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in urlopen retries = retries.increment( method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2] @@ -1316,28 +1428,10 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /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/mock_context_manager.py", line 37, 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 - return session.request(method=method, url=url, **kwargs) - ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/requests/sessions.py", line 589, in request - resp = self.send(prep, **send_kwargs) - File "/usr/lib/python3/dist-packages/requests/sessions.py", line 703, in send - 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] _________________________ +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] ________________________ -example = 'decorators.py' +example = 'network_mode.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -1346,14 +1440,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 198, in _new_conn @@ -1406,7 +1497,7 @@ ~~~~~~~~~~~~~~^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 205, 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: @@ -1417,6 +1508,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 841, in urlopen retries = retries.increment( method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2] @@ -1424,13 +1533,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 @@ -1442,10 +1551,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)")) -________________________ test_examples[network_mode.py] ________________________ +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] _________________________ -example = 'network_mode.py' +example = 'decorators.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -1454,11 +1563,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 198, in _new_conn @@ -1511,7 +1623,7 @@ ~~~~~~~~~~~~~~^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 205, 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: @@ -1522,24 +1634,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 841, in urlopen retries = retries.increment( method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2] @@ -1547,13 +1641,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 @@ -1565,10 +1659,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[network_mode_httpx.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[aiohttp_client.py] _______________________ -example = 'network_mode_httpx.py' +example = 'aiohttp_client.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -1577,94 +1671,28 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/network_mode_httpx.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/aiohttp_client.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError ------------------------------ Captured stdout call ----------------------------- -Mock status: 201 ----------------------------- Captured stderr call ----------------------------- +/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py:30: DeprecationWarning: There is no current event loop + loop = asyncio.get_event_loop() Traceback (most recent call last): - File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions - yield - File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 250, in handle_request - resp = self._pool.handle_request(req) - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request - raise exc from None - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request - response = connection.handle_request( - pool_request.request - ) - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 101, in handle_request - raise exc - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 78, in handle_request - stream = self._connect(request) - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 124, in _connect - stream = self._network_backend.connect_tcp(**kwargs) - File "/usr/lib/python3/dist-packages/httpcore/_backends/sync.py", line 207, in connect_tcp - with map_exceptions(exc_map): - ~~~~~~~~~~~~~~^^^^^^^^^ - File "/usr/lib/python3.13/contextlib.py", line 162, in __exit__ - self.gen.throw(value) - ~~~~~~~~~~~~~~^^^^^^^ - File "/usr/lib/python3/dist-packages/httpcore/_exceptions.py", line 14, in map_exceptions - raise to_exc(exc) from exc -httpcore.ConnectError: [Errno -3] Temporary failure in name resolution - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/network_mode_httpx.py", line 22, in - res = httpx.get("http://httpbin.org/ip") - File "/usr/lib/python3/dist-packages/httpx/_api.py", line 195, in get - return request( - "GET", - ...<9 lines>... - trust_env=trust_env, - ) - File "/usr/lib/python3/dist-packages/httpx/_api.py", line 109, in request - return client.request( - ~~~~~~~~~~~~~~^ - method=method, - ^^^^^^^^^^^^^^ - ...<8 lines>... - follow_redirects=follow_redirects, - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ) - ^ - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 825, in request - return self.send(request, auth=auth, follow_redirects=follow_redirects) - ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 914, in send - response = self._send_handling_auth( - request, - ...<2 lines>... - history=[], - ) - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 942, in _send_handling_auth - response = self._send_handling_redirects( - request, - follow_redirects=follow_redirects, - history=history, - ) - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 979, in _send_handling_redirects - response = self._send_single_request(request) - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 1014, in _send_single_request - response = transport.handle_request(request) - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/_httpx.py", line 141, in handle_request - return transport.handle_request(request) - ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 249, in handle_request - with map_httpcore_exceptions(): - ~~~~~~~~~~~~~~~~~~~~~~~^^ - File "/usr/lib/python3.13/contextlib.py", line 162, in __exit__ - self.gen.throw(value) - ~~~~~~~~~~~~~~^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions - raise mapped_exc(message) from exc -httpx.ConnectError: [Errno -3] Temporary failure in name resolution + 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 719, 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_requests_get _______________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -1712,7 +1740,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) @@ -1950,7 +1978,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -1966,13 +1994,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:205: 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 @@ -2054,9 +2082,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, @@ -2150,7 +2178,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 @@ -2174,7 +2202,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -2268,12 +2296,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. @@ -2321,7 +2349,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) @@ -2559,7 +2587,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -2575,13 +2603,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:205: 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 @@ -2663,9 +2691,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, @@ -2759,7 +2787,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 @@ -2783,7 +2811,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -2877,12 +2905,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. @@ -2930,7 +2958,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) @@ -3168,7 +3196,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -3184,13 +3212,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:205: 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 @@ -3272,9 +3300,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, @@ -3368,7 +3396,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 @@ -3392,7 +3420,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -3486,13 +3514,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:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -3505,11 +3533,13 @@ E AssertionError tests/unit/interceptors/base.py:74: AssertionError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [14/Apr/2025 22:14:47] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' -url_500 = 'http://127.0.0.1:37331/status/500' +self = +url_404 = 'http://127.0.0.1:32807/status/404' +url_500 = 'http://127.0.0.1:32807/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -3529,12 +3559,12 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:32] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [17/May/2026 02:35:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardAiohttp.test_network_mode_hostname ________________ -self = -req = +self = +req = traces = [] timeout = ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=30, ceil_threshold=5) @@ -3606,8 +3636,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:37331/status/401' +self = +url_401 = 'http://127.0.0.1:32807/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -3643,8 +3673,8 @@ _, proto = await self._create_direct_connection(req, traces, timeout) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -req = +self = +req = traces = [] timeout = ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=30, ceil_threshold=5) @@ -3683,11 +3713,11 @@ /usr/lib/python3/dist-packages/aiohttp/connector.py:1357: ClientConnectorDNSError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:32] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardAiohttp.test_multiple_network_filters _______________ -self = -url_401 = 'http://127.0.0.1:37331/status/401' +self = +url_401 = 'http://127.0.0.1:32807/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -3723,13 +3753,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:32] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [17/May/2026 02:35:32] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [17/May/2026 02:35:32] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardAiohttp.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -3746,11 +3776,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -3765,11 +3795,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAiohttp.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -3787,11 +3817,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardAiohttp.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -3808,11 +3838,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAiohttp.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -3826,11 +3856,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardAiohttp.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -3845,11 +3875,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAiohttp.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -3865,11 +3895,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAiohttp.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -3881,11 +3911,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -3899,12 +3929,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_network_mode ___________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' -url_500 = 'http://127.0.0.1:37331/status/500' +self = +url_404 = 'http://127.0.0.1:32807/status/404' +url_500 = 'http://127.0.0.1:32807/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -3924,8 +3954,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:32] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [17/May/2026 02:35:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAsyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -3974,8 +4004,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:37331/status/401' +self = +url_401 = 'http://127.0.0.1:32807/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -4047,11 +4077,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:118: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardAsyncHttpx.test_multiple_network_filters _____________ -self = -url_401 = 'http://127.0.0.1:37331/status/401' +self = +url_401 = 'http://127.0.0.1:32807/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -4087,13 +4117,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardAsyncHttpx.test_json_request ___________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -4110,11 +4140,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 __________________ TestStandardAsyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -4129,11 +4159,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAsyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -4151,11 +4181,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -4172,11 +4202,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAsyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -4190,11 +4220,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -4209,11 +4239,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_mutli_value_response_headers ___________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -4229,11 +4259,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -4245,11 +4275,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -4263,12 +4293,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' -url_500 = 'http://127.0.0.1:37331/status/500' +self = +url_404 = 'http://127.0.0.1:32807/status/404' +url_500 = 'http://127.0.0.1:32807/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -4288,8 +4318,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:33] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardSyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -4336,8 +4366,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:37331/status/401' +self = +url_401 = 'http://127.0.0.1:32807/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -4407,11 +4437,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:118: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardSyncHttpx.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:37331/status/401' +self = +url_401 = 'http://127.0.0.1:32807/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -4447,13 +4477,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardSyncHttpx.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -4470,11 +4500,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -4489,11 +4519,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardSyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -4511,11 +4541,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardSyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -4532,11 +4562,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardSyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -4550,11 +4580,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:48] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -4568,10 +4598,12 @@ E AssertionError tests/unit/interceptors/base.py:228: AssertionError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardSyncHttpx.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -4587,11 +4619,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardSyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -4603,10 +4635,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_sync ___________________________________ -URL = 'http://127.0.0.1:37331/status/404' +URL = 'http://127.0.0.1:32807/status/404' def test_sync(URL): pook.get(URL).times(1).reply(200).body("123") @@ -4619,10 +4651,10 @@ tests/unit/interceptors/httpx_test.py:43: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_json ___________________________________ -URL = 'http://127.0.0.1:37331/status/404' +URL = 'http://127.0.0.1:32807/status/404' def test_json(URL): ( @@ -4641,10 +4673,10 @@ tests/unit/interceptors/httpx_test.py:67: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "POST /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "POST /status/404 HTTP/1.1" 404 0 __________________________ test_streaming[iter_bytes] __________________________ -URL = 'http://127.0.0.1:37331/status/404', response_method = 'iter_bytes' +URL = 'http://127.0.0.1:32807/status/404', response_method = 'iter_bytes' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -4660,9 +4692,11 @@ E + and 17 = len(b'streamed response') tests/unit/interceptors/httpx_test.py:79: AssertionError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_streaming[iter_raw] ___________________________ -URL = 'http://127.0.0.1:37331/status/404', response_method = 'iter_raw' +URL = 'http://127.0.0.1:32807/status/404', response_method = 'iter_raw' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -4679,10 +4713,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_redirect_following ____________________________ -URL = 'http://127.0.0.1:37331/status/404' +URL = 'http://127.0.0.1:32807/status/404' def test_redirect_following(URL): urls = [URL, f"{URL}/redirected", f"{URL}/redirected_again"] @@ -4700,11 +4734,11 @@ tests/unit/interceptors/httpx_test.py:93: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -4718,12 +4752,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' -url_500 = 'http://127.0.0.1:37331/status/500' +self = +url_404 = 'http://127.0.0.1:32807/status/404' +url_500 = 'http://127.0.0.1:32807/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -4743,11 +4777,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "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. @@ -4795,7 +4829,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> @@ -5031,7 +5065,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -5047,14 +5081,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:205: NameResolutionError The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:37331/status/401' +self = +url_401 = 'http://127.0.0.1:32807/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -5096,9 +5130,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, @@ -5192,19 +5226,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 - - [17/May/2026 02:35:34] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/401 HTTP/1.1" 401 0 ------------------------------ Captured log call ------------------------------- -WARNING urllib3.connectionpool:connectionpool.py:868 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:868 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:868 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:868 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:868 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:868 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:37331/status/401' +self = +url_401 = 'http://127.0.0.1:32807/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -5240,13 +5274,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardUrllib3.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -5263,11 +5297,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -5282,11 +5316,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardUrllib3.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -5304,11 +5338,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardUrllib3.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -5324,10 +5358,12 @@ E AssertionError tests/unit/interceptors/base.py:207: AssertionError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardUrllib3.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -5341,11 +5377,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -5360,11 +5396,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardUrllib3.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -5380,11 +5416,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardUrllib3.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -5396,11 +5432,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -5413,11 +5449,13 @@ E AssertionError tests/unit/interceptors/base.py:74: AssertionError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' -url_500 = 'http://127.0.0.1:37331/status/500' +self = +url_404 = 'http://127.0.0.1:32807/status/404' +url_500 = 'http://127.0.0.1:32807/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -5437,11 +5475,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardRequests.test_network_mode_hostname ________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -5489,7 +5527,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) @@ -5727,7 +5765,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -5743,13 +5781,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:205: 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 @@ -5831,9 +5869,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, @@ -5927,14 +5965,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:37331/status/401' +self = +url_401 = 'http://127.0.0.1:32807/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -5966,7 +6004,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -6060,15 +6098,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 - - [17/May/2026 02:35:34] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardRequests.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:37331/status/401' +self = +url_401 = 'http://127.0.0.1:32807/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -6104,13 +6142,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardRequests.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -6126,10 +6164,12 @@ E AssertionError tests/unit/interceptors/base.py:167: AssertionError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardRequests.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -6143,10 +6183,12 @@ E AssertionError tests/unit/interceptors/base.py:178: AssertionError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardRequests.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -6164,11 +6206,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -6185,11 +6227,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardRequests.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -6203,11 +6245,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -6222,11 +6264,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -6242,11 +6284,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -6258,10 +6300,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ____________________________ test_post_with_headers ____________________________ -URL = 'http://127.0.0.1:37331/foo' +URL = 'http://127.0.0.1:32807/foo' @pytest.mark.pook def test_post_with_headers(URL): @@ -6270,15 +6312,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 - - [17/May/2026 02:35:34] "POST /foo HTTP/1.1" 404 207 +127.0.0.1 - - [14/Apr/2025 22:14:49] "POST /foo HTTP/1.1" 404 207 _____________________ TestUrllib.test_activate_deactivate ______________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -6292,12 +6334,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_network_mode _________________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' -url_500 = 'http://127.0.0.1:37331/status/500' +self = +url_404 = 'http://127.0.0.1:32807/status/404' +url_500 = 'http://127.0.0.1:32807/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -6317,14 +6359,14 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestUrllib.test_network_mode_hostname _____________________ -self = +self = http_class = -req = , http_conn_args = {} -host = 'example.com', h = +req = , http_conn_args = {} +host = 'example.com', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.13'} def do_open(self, http_class, req, **http_conn_args): @@ -6416,8 +6458,8 @@ During handling of the above exception, another exception occurred: -self = -url_401 = 'http://127.0.0.1:37331/status/401' +self = +url_401 = 'http://127.0.0.1:32807/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -6453,10 +6495,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): @@ -6508,11 +6550,11 @@ /usr/lib/python3.13/urllib/request.py:1322: URLError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestUrllib.test_multiple_network_filters ___________________ -self = -url_401 = 'http://127.0.0.1:37331/status/401' +self = +url_401 = 'http://127.0.0.1:32807/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -6548,13 +6590,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/401 HTTP/1.1" 401 0 _________________________ TestUrllib.test_json_request _________________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -6571,11 +6613,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ________________________ TestUrllib.test_json_response _________________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -6590,11 +6632,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 __________________ TestUrllib.test_json_request_and_response ___________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -6612,11 +6654,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_header_sent __________________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -6631,11 +6673,11 @@ tests/unit/interceptors/base.py:205: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestUrllib.test_mocked_response_headers ____________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -6647,11 +6689,11 @@ tests/unit/interceptors/base.py:215: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestUrllib.test_mutli_value_headers ______________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -6666,11 +6708,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_mutli_value_response_headers _________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -6683,10 +6725,12 @@ E ValueError: not enough values to unpack (expected 3, got 2) tests/unit/interceptors/base.py:237: ValueError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [14/Apr/2025 22:14:49] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_unmatched_headers_none_sent __________________ -self = -url_404 = 'http://127.0.0.1:37331/status/404' +self = +url_404 = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -6698,14 +6742,14 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:49] "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): @@ -6772,7 +6816,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, @@ -6828,11 +6872,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): @@ -6885,10 +6929,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): @@ -6999,10 +7043,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): @@ -7243,7 +7287,7 @@ tests/unit/matchers/headers_test.py:171: AssertionError ______________________ test_param_exists_empty_disallowed ______________________ -URL = 'http://127.0.0.1:37331/status/404' +URL = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_param_exists_empty_disallowed(URL): @@ -7266,10 +7310,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) @@ -7277,10 +7321,10 @@ /usr/lib/python3.13/urllib/request.py:613: HTTPError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:35] "GET /status/404?x HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:50] "GET /status/404?x HTTP/1.1" 404 0 _______________________ test_param_exists_empty_allowed ________________________ -URL = 'http://127.0.0.1:37331/status/404' +URL = 'http://127.0.0.1:32807/status/404' @pytest.mark.pook def test_param_exists_empty_allowed(URL): @@ -7302,10 +7346,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) @@ -7313,7 +7357,7 @@ /usr/lib/python3.13/urllib/request.py:613: HTTPError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [17/May/2026 02:35:35] "GET /status/404?x HTTP/1.1" 404 0 +127.0.0.1 - - [14/Apr/2025 22:14:50] "GET /status/404?x HTTP/1.1" 404 0 ________________________ test_mock_constructor[params] _________________________ param_kwargs = {'params': {'x': '1'}}, query_string = '?x=1' @@ -7382,7 +7426,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): @@ -7472,7 +7516,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): @@ -7639,12 +7683,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[network_mode_httpx.py] FAILED tests/integration/examples_test.py::test_examples[mock_context_manager.py] -FAILED tests/integration/examples_test.py::test_examples[decorators.py] - Ass... +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[network_mode_httpx.py] +FAILED tests/integration/examples_test.py::test_examples[decorators.py] - Ass... +FAILED tests/integration/examples_test.py::test_examples[aiohttp_client.py] 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 @@ -7734,7 +7778,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.50s ====== +===== 95 failed, 124 passed, 10 skipped, 3 xfailed, 42 warnings in 12.44s ====== 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.13 returned exit code 13 make[1]: Leaving directory '/build/reproducible-path/python-pook-2.1.3' @@ -7761,8 +7805,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-2_all.deb'. dpkg-deb: building package 'python-pook-doc' in '../python-pook-doc_2.1.3-2_all.deb'. +dpkg-deb: building package 'python3-pook' in '../python3-pook_2.1.3-2_all.deb'. dpkg-genbuildinfo --build=binary -O../python-pook_2.1.3-2_amd64.buildinfo dpkg-genchanges --build=binary -O../python-pook_2.1.3-2_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -7771,12 +7815,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/3277756/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3277756/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/873768 and its subdirectories -I: Current time: Sun May 17 02:35:43 -12 2026 -I: pbuilder-time-stamp: 1779028543 +I: removing directory /srv/workspace/pbuilder/3277756 and its subdirectories +I: Current time: Mon Apr 14 22:14:54 +14 2025 +I: pbuilder-time-stamp: 1744618494