Diff of the two buildlogs: -- --- b1/build.log 2025-01-16 05:25:35.372800617 +0000 +++ b2/build.log 2025-01-16 05:27:27.055723837 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed Jan 15 17:19:02 -12 2025 -I: pbuilder-time-stamp: 1737004742 +I: Current time: Thu Feb 19 01:48:40 +14 2026 +I: pbuilder-time-stamp: 1771415320 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -26,54 +26,86 @@ dpkg-source: info: applying 020_fix-sufix_versions.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/27056/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/108655/tmp/hooks/D01_modify_environment starting +debug: Running on ionos6-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Feb 18 11:48 /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/108655/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/108655/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=11 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='i386' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=21 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='600217a8c39a48d09d2a14b5718e911d' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='27056' - PS1='# ' - PS2='> ' + INVOCATION_ID=545bcdc2e6e04579885a285277b77bf0 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=108655 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.ycnSvdGS/pbuilderrc_SNK0 --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.ycnSvdGS/b1 --logfile b1/build.log python-pook_2.1.3-1.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://46.16.76.132:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.ycnSvdGS/pbuilderrc_tQ69 --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.ycnSvdGS/b2 --logfile b2/build.log python-pook_2.1.3-1.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://213.165.73.152:3128 I: uname -a - Linux ionos12-i386 6.1.0-30-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.124-1 (2025-01-12) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-30-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.124-1 (2025-01-12) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/27056/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/108655/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -307,7 +339,7 @@ Get: 162 http://deb.debian.org/debian trixie/main i386 python3-sphinxcontrib.jquery all 4.1-5 [7348 B] Get: 163 http://deb.debian.org/debian trixie/main i386 python3-sphinx-rtd-theme all 3.0.2+dfsg-1 [29.5 kB] Get: 164 http://deb.debian.org/debian trixie/main i386 python3-xmltodict all 0.13.0-1 [16.7 kB] -Fetched 56.6 MB in 1s (43.3 MB/s) +Fetched 56.6 MB in 1s (62.0 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 ... 19839 files and directories currently installed.) @@ -838,8 +870,8 @@ Setting up tzdata (2024b-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Thu Jan 16 05:20:31 UTC 2025. -Universal Time is now: Thu Jan 16 05:20:31 UTC 2025. +Local time is now: Wed Feb 18 11:49:05 UTC 2026. +Universal Time is now: Wed Feb 18 11:49:05 UTC 2026. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libpython3.13-minimal:i386 (3.13.1-3) ... @@ -1002,7 +1034,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/python-pook-2.1.3/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../python-pook_2.1.3-1_source.changes +I: user script /srv/workspace/pbuilder/108655/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/108655/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/python-pook-2.1.3/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../python-pook_2.1.3-1_source.changes dpkg-buildpackage: info: source package python-pook dpkg-buildpackage: info: source version 2.1.3-1 dpkg-buildpackage: info: source distribution unstable @@ -1057,9 +1093,9 @@ preparing documents... done copying assets... copying static files... -Writing evaluated template result to /build/reproducible-path/python-pook-2.1.3/build/html/_static/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/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/js/versions.js copying static files: done copying extra files... @@ -1104,18 +1140,17 @@ platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 rootdir: /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build configfile: pyproject.toml -plugins: pook-2.1.3, typeguard-4.4.1, cov-5.0.0, httpbin-2.1.0, anyio-4.7.0 +plugins: pook-2.1.3, typeguard-4.4.1, httpbin-2.1.0, cov-5.0.0, anyio-4.7.0 collected 232 items tests/integration/engines_test.py .. [ 0%] -tests/integration/examples_test.py ....FFF......F....F...F [ 10%] +tests/integration/examples_test.py .....F..F....F.F.F.F... [ 10%] tests/integration/pook_requests_test.py FFF [ 12%] tests/unit/api_test.py ......s [ 15%] tests/unit/engine_test.py .. [ 15%] tests/unit/exceptions_test.py . [ 16%] tests/unit/interceptors/aiohttp_test.py FFFFFFFFFFFFssssssss [ 25%] -tests/unit/interceptors/httpx_test.py FFFFFFFFF127.0.0.1 - - [15/Jan/2025 17:24:18] "GET /status/404 HTTP/1.1" 404 0 -FFFFFFFFFFFFFFFFsFFFF [ 37%] +tests/unit/interceptors/httpx_test.py FFFFFFFFFFFFFFFFFFFFFFFFFsFFFF [ 37%] tests/unit/interceptors/module_test.py . [ 38%] tests/unit/interceptors/urllib3_test.py FFFFFFFFFFFFFFFFFFFFFFFF........ [ 52%] F [ 52%] @@ -1124,14 +1159,15 @@ tests/unit/matchers/headers_test.py ...........FF............ [ 71%] tests/unit/matchers/query_test.py FF [ 71%] tests/unit/matchers/url_test.py ............................ [ 84%] -tests/unit/mock_engine_test.py ....x [ 86%] +tests/unit/mock_engine_test.py ....127.0.0.1 - - [19/Feb/2026 01:49:59] "GET /status/404 HTTP/1.1" 404 0 +x [ 86%] tests/unit/mock_test.py .FxxF......................... [ 99%] tests/unit/regex_test.py .. [100%] =================================== FAILURES =================================== -________________________ test_examples[network_mode.py] ________________________ +_______________________ test_examples[aiohttp_client.py] _______________________ -example = 'network_mode.py' +example = 'aiohttp_client.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -1140,11 +1176,53 @@ > 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/aiohttp_client.py'], returncode=1).returncode + +tests/integration/examples_test.py:22: AssertionError +----------------------------- Captured stderr call ----------------------------- +/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py:30: DeprecationWarning: There is no current event loop + loop = asyncio.get_event_loop() +Traceback (most recent call last): + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py", line 31, in + loop.run_until_complete(main(loop)) + ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ + File "/usr/lib/python3.13/asyncio/base_events.py", line 720, in run_until_complete + return future.result() + ~~~~~~~~~~~~~^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py", line 28, in main + await fetch(session, "http://httpbin.org/ip", bytearray("foo bar", "utf-8")) + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py", line 10, in fetch + with async_timeout.timeout(10): + ~~~~~~~~~~~~~~~~~~~~~^^^^ +TypeError: 'Timeout' object does not support the context manager protocol +____________________ test_examples[mock_context_manager.py] ____________________ + +example = 'mock_context_manager.py' + + @pytest.mark.parametrize("example", examples) + def test_examples(example): + result = subprocess.run([sys.executable, f"examples/{example}"], check=False) + +> 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 tests/integration/examples_test.py:22: AssertionError ----------------------------- Captured stdout call ----------------------------- -Mock status: 201 +#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 199, in _new_conn @@ -1197,7 +1275,7 @@ ~~~~~~~~~~~~~~^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn raise NameResolutionError(self.host, self, e) from e -urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) +urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) The above exception was the direct cause of the following exception: @@ -1208,24 +1286,6 @@ ...<9 lines>... chunked=chunked, ) - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 175, in handler - return self._on_request( - ~~~~~~~~~~~~~~~~^ - urlopen, path, conn, method, url, body=body, headers=headers, **kw - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ) - ^ - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request - return urlopen(pool, method, url, body=body, headers=headers, **kw) - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 175, in handler - return self._on_request( - ~~~~~~~~~~~~~~~~^ - urlopen, path, conn, method, url, body=body, headers=headers, **kw - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ) - ^ - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request - return urlopen(pool, method, url, body=body, headers=headers, **kw) File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 843, in urlopen retries = retries.increment( method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2] @@ -1233,12 +1293,12 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) During handling of the above exception, another exception occurred: 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 + 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) @@ -1251,7 +1311,7 @@ r = adapter.send(request, **kwargs) File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send raise ConnectionError(e, request=request) -requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) _____________________ test_examples[network_mode_httpx.py] _____________________ example = 'network_mode_httpx.py' @@ -1416,7 +1476,7 @@ ~~~~~~~~~~~~~~^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn raise NameResolutionError(self.host, self, e) from e -urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) +urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) The above exception was the direct cause of the following exception: @@ -1475,10 +1535,10 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/404 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) -____________________ test_examples[mock_context_manager.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 = 'mock_context_manager.py' +example = 'network_mode.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -1487,23 +1547,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/network_mode.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: [] +Mock status: 201 ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 199, in _new_conn @@ -1556,7 +1604,7 @@ ~~~~~~~~~~~~~~^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn raise NameResolutionError(self.host, self, e) from e -urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) +urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) The above exception was the direct cause of the following exception: @@ -1567,6 +1615,24 @@ ...<9 lines>... chunked=chunked, ) + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 175, in handler + return self._on_request( + ~~~~~~~~~~~~~~~~^ + urlopen, path, conn, method, url, body=body, headers=headers, **kw + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ) + ^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request + return urlopen(pool, method, url, body=body, headers=headers, **kw) + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 175, in handler + return self._on_request( + ~~~~~~~~~~~~~~~~^ + urlopen, path, conn, method, url, body=body, headers=headers, **kw + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ) + ^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request + return urlopen(pool, method, url, body=body, headers=headers, **kw) File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 843, in urlopen retries = retries.increment( method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2] @@ -1574,12 +1640,12 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) During handling of the above exception, another exception occurred: 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 + 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) @@ -1592,37 +1658,7 @@ r = adapter.send(request, **kwargs) File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send raise ConnectionError(e, request=request) -requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) -_______________________ test_examples[aiohttp_client.py] _______________________ - -example = 'aiohttp_client.py' - - @pytest.mark.parametrize("example", examples) - def test_examples(example): - result = subprocess.run([sys.executable, f"examples/{example}"], check=False) - -> 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 - -tests/integration/examples_test.py:22: AssertionError ------------------------------ Captured stderr call ----------------------------- -/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py:30: DeprecationWarning: There is no current event loop - loop = asyncio.get_event_loop() -Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py", line 31, in - loop.run_until_complete(main(loop)) - ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ - File "/usr/lib/python3.13/asyncio/base_events.py", line 720, in run_until_complete - return future.result() - ~~~~~~~~~~~~~^^ - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py", line 28, in main - await fetch(session, "http://httpbin.org/ip", bytearray("foo bar", "utf-8")) - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py", line 10, in fetch - with async_timeout.timeout(10): - ~~~~~~~~~~~~~~~~~~~~~^^^^ -TypeError: 'Timeout' object does not support the context manager protocol +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 = 'decorators.py' @@ -1694,7 +1730,7 @@ ~~~~~~~~~~~~~~^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn raise NameResolutionError(self.host, self, e) from e -urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) +urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) The above exception was the direct cause of the following exception: @@ -1712,7 +1748,7 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /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: /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: @@ -1730,10 +1766,10 @@ r = adapter.send(request, **kwargs) File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send raise ConnectionError(e, request=request) -requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) ______________________________ test_requests_get _______________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -1781,7 +1817,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) @@ -2019,7 +2055,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -2035,13 +2071,13 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -2123,9 +2159,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, @@ -2219,7 +2255,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 @@ -2243,7 +2279,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -2337,12 +2373,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. @@ -2390,7 +2426,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) @@ -2628,7 +2664,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -2644,13 +2680,13 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -2732,9 +2768,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, @@ -2828,7 +2864,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 @@ -2852,7 +2888,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -2946,12 +2982,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. @@ -2999,7 +3035,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) @@ -3237,7 +3273,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -3253,13 +3289,13 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -3341,9 +3377,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, @@ -3437,7 +3473,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 @@ -3461,7 +3497,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -3555,13 +3591,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:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -3575,12 +3611,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:16] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' -url_500 = 'http://127.0.0.1:39943/status/500' +self = +url_404 = 'http://127.0.0.1:37433/status/404' +url_500 = 'http://127.0.0.1:37433/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -3600,12 +3636,12 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:16] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [15/Jan/2025 17:24:16] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardAiohttp.test_network_mode_hostname ________________ -self = -req = , traces = [] +self = +req = , traces = [] timeout = ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=30, ceil_threshold=5) async def _create_direct_connection( @@ -3676,8 +3712,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:39943/status/401' +self = +url_401 = 'http://127.0.0.1:37433/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -3713,8 +3749,8 @@ _, proto = await self._create_direct_connection(req, traces, timeout) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -req = , traces = [] +self = +req = , traces = [] timeout = ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=30, ceil_threshold=5) async def _create_direct_connection( @@ -3752,11 +3788,11 @@ /usr/lib/python3/dist-packages/aiohttp/connector.py:1323: ClientConnectorDNSError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:16] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardAiohttp.test_multiple_network_filters _______________ -self = -url_401 = 'http://127.0.0.1:39943/status/401' +self = +url_401 = 'http://127.0.0.1:37433/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -3792,13 +3828,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:16] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:24:16] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:24:16] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardAiohttp.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -3815,11 +3851,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:16] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -3834,11 +3870,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:16] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAiohttp.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -3856,11 +3892,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:16] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardAiohttp.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -3877,11 +3913,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:16] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAiohttp.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -3895,11 +3931,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:16] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardAiohttp.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -3914,11 +3950,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:16] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAiohttp.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -3934,11 +3970,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:16] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAiohttp.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -3950,11 +3986,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:16] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -3968,12 +4004,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:17] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_network_mode ___________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' -url_500 = 'http://127.0.0.1:39943/status/500' +self = +url_404 = 'http://127.0.0.1:37433/status/404' +url_500 = 'http://127.0.0.1:37433/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -3993,8 +4029,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:17] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [15/Jan/2025 17:24:17] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAsyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -4040,8 +4076,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:39943/status/401' +self = +url_401 = 'http://127.0.0.1:37433/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -4110,11 +4146,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:17] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardAsyncHttpx.test_multiple_network_filters _____________ -self = -url_401 = 'http://127.0.0.1:39943/status/401' +self = +url_401 = 'http://127.0.0.1:37433/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -4150,13 +4186,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:18] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:24:18] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:24:18] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:56] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardAsyncHttpx.test_json_request ___________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -4173,11 +4209,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:18] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/404 HTTP/1.1" 404 0 __________________ TestStandardAsyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -4192,11 +4228,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:18] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAsyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -4214,11 +4250,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:18] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -4235,11 +4271,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:18] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAsyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -4253,11 +4289,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:18] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -4271,10 +4307,12 @@ E AssertionError tests/unit/interceptors/base.py:228: AssertionError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_mutli_value_response_headers ___________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -4290,11 +4328,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:19] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -4306,11 +4344,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:19] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -4324,12 +4362,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:19] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' -url_500 = 'http://127.0.0.1:39943/status/500' +self = +url_404 = 'http://127.0.0.1:37433/status/404' +url_500 = 'http://127.0.0.1:37433/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -4349,8 +4387,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:19] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [15/Jan/2025 17:24:19] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardSyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -4394,8 +4432,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:39943/status/401' +self = +url_401 = 'http://127.0.0.1:37433/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -4462,11 +4500,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:19] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardSyncHttpx.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:39943/status/401' +self = +url_401 = 'http://127.0.0.1:37433/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -4502,13 +4540,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:19] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:24:19] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:24:20] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardSyncHttpx.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -4525,11 +4563,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:20] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -4544,11 +4582,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:20] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardSyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -4566,11 +4604,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:20] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardSyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -4587,11 +4625,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:20] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardSyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -4605,11 +4643,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:20] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -4624,11 +4662,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:20] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardSyncHttpx.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -4644,11 +4682,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:20] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardSyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -4660,10 +4698,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:20] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_sync ___________________________________ -URL = 'http://127.0.0.1:39943/status/404' +URL = 'http://127.0.0.1:37433/status/404' def test_sync(URL): pook.get(URL).times(1).reply(200).body("123") @@ -4676,10 +4714,10 @@ tests/unit/interceptors/httpx_test.py:43: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:20] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:57] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_json ___________________________________ -URL = 'http://127.0.0.1:39943/status/404' +URL = 'http://127.0.0.1:37433/status/404' def test_json(URL): ( @@ -4698,10 +4736,10 @@ tests/unit/interceptors/httpx_test.py:67: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:20] "POST /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "POST /status/404 HTTP/1.1" 404 0 __________________________ test_streaming[iter_bytes] __________________________ -URL = 'http://127.0.0.1:39943/status/404', response_method = 'iter_bytes' +URL = 'http://127.0.0.1:37433/status/404', response_method = 'iter_bytes' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -4718,10 +4756,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:21] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_streaming[iter_raw] ___________________________ -URL = 'http://127.0.0.1:39943/status/404', response_method = 'iter_raw' +URL = 'http://127.0.0.1:37433/status/404', response_method = 'iter_raw' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -4738,10 +4776,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:21] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_redirect_following ____________________________ -URL = 'http://127.0.0.1:39943/status/404' +URL = 'http://127.0.0.1:37433/status/404' def test_redirect_following(URL): urls = [URL, f"{URL}/redirected", f"{URL}/redirected_again"] @@ -4759,11 +4797,11 @@ tests/unit/interceptors/httpx_test.py:93: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:21] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -4777,12 +4815,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:21] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' -url_500 = 'http://127.0.0.1:39943/status/500' +self = +url_404 = 'http://127.0.0.1:37433/status/404' +url_500 = 'http://127.0.0.1:37433/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -4802,11 +4840,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:21] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [15/Jan/2025 17:24:21] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "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. @@ -4854,7 +4892,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> @@ -5090,7 +5128,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -5106,14 +5144,14 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:39943/status/401' +self = +url_401 = 'http://127.0.0.1:37433/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -5155,9 +5193,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, @@ -5251,19 +5289,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 - - [15/Jan/2025 17:24:21] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/401 HTTP/1.1" 401 0 ------------------------------ Captured log call ------------------------------- -WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / -WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / -WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / +WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / +WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / +WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / ______________ TestStandardUrllib3.test_multiple_network_filters _______________ -self = -url_401 = 'http://127.0.0.1:39943/status/401' +self = +url_401 = 'http://127.0.0.1:37433/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -5299,13 +5337,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:21] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:24:21] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:24:21] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardUrllib3.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -5322,11 +5360,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:21] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -5341,11 +5379,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:21] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardUrllib3.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -5363,11 +5401,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:21] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardUrllib3.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -5384,11 +5422,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:21] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardUrllib3.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -5402,11 +5440,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:21] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -5421,11 +5459,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:21] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardUrllib3.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -5441,11 +5479,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:21] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardUrllib3.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -5457,11 +5495,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:21] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -5475,12 +5513,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:21] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' -url_500 = 'http://127.0.0.1:39943/status/500' +self = +url_404 = 'http://127.0.0.1:37433/status/404' +url_500 = 'http://127.0.0.1:37433/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -5500,11 +5538,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:21] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [15/Jan/2025 17:24:21] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "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. @@ -5552,7 +5590,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) @@ -5790,7 +5828,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -5806,13 +5844,13 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -5894,9 +5932,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, @@ -5990,14 +6028,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:39943/status/401' +self = +url_401 = 'http://127.0.0.1:37433/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -6029,7 +6067,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -6123,15 +6161,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 - - [15/Jan/2025 17:24:21] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardRequests.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:39943/status/401' +self = +url_401 = 'http://127.0.0.1:37433/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -6167,13 +6205,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:22] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:24:22] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:24:22] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardRequests.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -6190,11 +6228,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:22] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardRequests.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -6209,11 +6247,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:22] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardRequests.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -6231,11 +6269,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:22] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -6252,11 +6290,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:22] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardRequests.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -6270,11 +6308,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:22] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -6289,11 +6327,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:22] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -6309,11 +6347,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:22] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -6325,10 +6363,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:22] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 ____________________________ test_post_with_headers ____________________________ -URL = 'http://127.0.0.1:39943/foo' +URL = 'http://127.0.0.1:37433/foo' @pytest.mark.pook def test_post_with_headers(URL): @@ -6337,15 +6375,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 - - [15/Jan/2025 17:24:22] "POST /foo HTTP/1.1" 404 207 +127.0.0.1 - - [19/Feb/2026 01:49:58] "POST /foo HTTP/1.1" 404 207 _____________________ TestUrllib.test_activate_deactivate ______________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -6359,12 +6397,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:22] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_network_mode _________________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' -url_500 = 'http://127.0.0.1:39943/status/500' +self = +url_404 = 'http://127.0.0.1:37433/status/404' +url_500 = 'http://127.0.0.1:37433/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -6384,14 +6422,14 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:22] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [15/Jan/2025 17:24:22] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "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): @@ -6483,8 +6521,8 @@ During handling of the above exception, another exception occurred: -self = -url_401 = 'http://127.0.0.1:39943/status/401' +self = +url_401 = 'http://127.0.0.1:37433/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -6520,10 +6558,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): @@ -6575,11 +6613,11 @@ /usr/lib/python3.13/urllib/request.py:1322: URLError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:22] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestUrllib.test_multiple_network_filters ___________________ -self = -url_401 = 'http://127.0.0.1:39943/status/401' +self = +url_401 = 'http://127.0.0.1:37433/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -6615,13 +6653,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:23] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:24:23] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:24:23] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/401 HTTP/1.1" 401 0 _________________________ TestUrllib.test_json_request _________________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -6638,11 +6676,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:23] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 ________________________ TestUrllib.test_json_response _________________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -6657,11 +6695,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:23] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 __________________ TestUrllib.test_json_request_and_response ___________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -6679,11 +6717,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:23] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_header_sent __________________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -6698,11 +6736,11 @@ tests/unit/interceptors/base.py:205: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:23] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestUrllib.test_mocked_response_headers ____________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -6714,11 +6752,11 @@ tests/unit/interceptors/base.py:215: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:23] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestUrllib.test_mutli_value_headers ______________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -6733,11 +6771,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:23] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_mutli_value_response_headers _________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -6751,11 +6789,11 @@ tests/unit/interceptors/base.py:237: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:23] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_unmatched_headers_none_sent __________________ -self = -url_404 = 'http://127.0.0.1:39943/status/404' +self = +url_404 = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -6767,14 +6805,14 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:23] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:58] "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): @@ -6841,7 +6879,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, @@ -6897,11 +6935,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): @@ -6954,10 +6992,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): @@ -7068,10 +7106,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): @@ -7312,7 +7350,7 @@ tests/unit/matchers/headers_test.py:171: AssertionError ______________________ test_param_exists_empty_disallowed ______________________ -URL = 'http://127.0.0.1:39943/status/404' +URL = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_param_exists_empty_disallowed(URL): @@ -7335,10 +7373,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) @@ -7346,10 +7384,10 @@ /usr/lib/python3.13/urllib/request.py:613: HTTPError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:24] "GET /status/404?x HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:59] "GET /status/404?x HTTP/1.1" 404 0 _______________________ test_param_exists_empty_allowed ________________________ -URL = 'http://127.0.0.1:39943/status/404' +URL = 'http://127.0.0.1:37433/status/404' @pytest.mark.pook def test_param_exists_empty_allowed(URL): @@ -7371,10 +7409,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) @@ -7382,7 +7420,7 @@ /usr/lib/python3.13/urllib/request.py:613: HTTPError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:24:25] "GET /status/404?x HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:49:59] "GET /status/404?x HTTP/1.1" 404 0 ________________________ test_mock_constructor[params] _________________________ param_kwargs = {'params': {'x': '1'}}, query_string = '?x=1' @@ -7451,7 +7489,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): @@ -7541,7 +7579,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): @@ -7708,11 +7746,11 @@ -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ -FAILED tests/integration/examples_test.py::test_examples[network_mode.py] - A... +FAILED tests/integration/examples_test.py::test_examples[aiohttp_client.py] +FAILED tests/integration/examples_test.py::test_examples[mock_context_manager.py] FAILED tests/integration/examples_test.py::test_examples[network_mode_httpx.py] FAILED tests/integration/examples_test.py::test_examples[urllib3_client.py] -FAILED tests/integration/examples_test.py::test_examples[mock_context_manager.py] -FAILED tests/integration/examples_test.py::test_examples[aiohttp_client.py] +FAILED tests/integration/examples_test.py::test_examples[network_mode.py] - A... FAILED tests/integration/examples_test.py::test_examples[decorators.py] - Ass... FAILED tests/integration/pook_requests_test.py::test_requests_get - requests.... FAILED tests/integration/pook_requests_test.py::test_requests_match_url - req... @@ -7803,7 +7841,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 57.97s ====== +===== 95 failed, 124 passed, 10 skipped, 3 xfailed, 42 warnings in 17.84s ====== 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 I: pybuild pybuild:308: cp -r /build/reproducible-path/python-pook-2.1.3/examples /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build ; rm -f /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/mocket_example.py I: pybuild base:311: cd /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build; python3.12 -m pytest tests @@ -7811,11 +7849,11 @@ platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 rootdir: /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build configfile: pyproject.toml -plugins: pook-2.1.3, typeguard-4.4.1, cov-5.0.0, httpbin-2.1.0, anyio-4.7.0 +plugins: pook-2.1.3, typeguard-4.4.1, httpbin-2.1.0, cov-5.0.0, anyio-4.7.0 collected 232 items tests/integration/engines_test.py .. [ 0%] -tests/integration/examples_test.py ....FFF......F....F...F [ 10%] +tests/integration/examples_test.py .....F..F....F.F.F.F... [ 10%] tests/integration/pook_requests_test.py FFF [ 12%] tests/unit/api_test.py ......s [ 15%] tests/unit/engine_test.py .. [ 15%] @@ -7828,16 +7866,18 @@ 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%] +tests/unit/matchers/query_test.py F127.0.0.1 - - [19/Feb/2026 01:50:19] "GET /status/404?x HTTP/1.1" 404 0 +F [ 71%] tests/unit/matchers/url_test.py ............................ [ 84%] -tests/unit/mock_engine_test.py ....x [ 86%] +tests/unit/mock_engine_test.py ....127.0.0.1 - - [19/Feb/2026 01:50:19] "GET /status/404 HTTP/1.1" 404 0 +x [ 86%] tests/unit/mock_test.py .FxxF......................... [ 99%] tests/unit/regex_test.py .. [100%] =================================== FAILURES =================================== -________________________ test_examples[network_mode.py] ________________________ +_______________________ test_examples[aiohttp_client.py] _______________________ -example = 'network_mode.py' +example = 'aiohttp_client.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -7846,11 +7886,52 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/network_mode.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/aiohttp_client.py'], returncode=1).returncode + +tests/integration/examples_test.py:22: AssertionError +----------------------------- Captured stderr call ----------------------------- +/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py:30: DeprecationWarning: There is no current event loop + loop = asyncio.get_event_loop() +Traceback (most recent call last): + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py", line 31, in + loop.run_until_complete(main(loop)) + File "/usr/lib/python3.12/asyncio/base_events.py", line 686, in run_until_complete + return future.result() + ^^^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py", line 28, in main + await fetch(session, "http://httpbin.org/ip", bytearray("foo bar", "utf-8")) + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py", line 10, in fetch + with async_timeout.timeout(10): + ^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: 'Timeout' object does not support the context manager protocol +____________________ test_examples[mock_context_manager.py] ____________________ + +example = 'mock_context_manager.py' + + @pytest.mark.parametrize("example", examples) + def test_examples(example): + result = subprocess.run([sys.executable, f"examples/{example}"], check=False) + +> assert result.returncode == 0, result.stdout +E AssertionError: None +E assert 1 == 0 +E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/mock_context_manager.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError ----------------------------- Captured stdout call ----------------------------- -Mock status: 201 +#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 199, in _new_conn @@ -7885,7 +7966,7 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn raise NameResolutionError(self.host, self, e) from e -urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) +urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) The above exception was the direct cause of the following exception: @@ -7893,30 +7974,18 @@ File "/usr/lib/python3/dist-packages/requests/adapters.py", line 667, in send resp = conn.urlopen( ^^^^^^^^^^^^^ - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 175, in handler - return self._on_request( - ^^^^^^^^^^^^^^^^^ - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request - return urlopen(pool, method, url, body=body, headers=headers, **kw) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 175, in handler - return self._on_request( - ^^^^^^^^^^^^^^^^^ - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request - return urlopen(pool, method, url, body=body, headers=headers, **kw) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 843, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) During handling of the above exception, another exception occurred: Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/network_mode.py", line 22, in + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_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 @@ -7933,7 +8002,7 @@ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send raise ConnectionError(e, request=request) -requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) _____________________ test_examples[network_mode_httpx.py] _____________________ example = 'network_mode_httpx.py' @@ -8067,7 +8136,7 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn raise NameResolutionError(self.host, self, e) from e -urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) +urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) The above exception was the direct cause of the following exception: @@ -8099,10 +8168,10 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/404 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) -____________________ test_examples[mock_context_manager.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 = 'mock_context_manager.py' +example = 'network_mode.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -8111,23 +8180,11 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/mock_context_manager.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/network_mode.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError ----------------------------- Captured stdout call ----------------------------- -#1 Status: 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: [] +Mock status: 201 ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 199, in _new_conn @@ -8162,7 +8219,7 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn raise NameResolutionError(self.host, self, e) from e -urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) +urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) The above exception was the direct cause of the following exception: @@ -8170,18 +8227,30 @@ File "/usr/lib/python3/dist-packages/requests/adapters.py", line 667, in send resp = conn.urlopen( ^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 175, in handler + return self._on_request( + ^^^^^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request + return urlopen(pool, method, url, body=body, headers=headers, **kw) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 175, in handler + return self._on_request( + ^^^^^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request + return urlopen(pool, method, url, body=body, headers=headers, **kw) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 843, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) During handling of the above exception, another exception occurred: Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/mock_context_manager.py", line 37, in + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/network_mode.py", line 22, in res = requests.get("http://httpbin.org/ip") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/requests/api.py", line 73, in get @@ -8198,36 +8267,7 @@ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send raise ConnectionError(e, request=request) -requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) -_______________________ test_examples[aiohttp_client.py] _______________________ - -example = 'aiohttp_client.py' - - @pytest.mark.parametrize("example", examples) - def test_examples(example): - result = subprocess.run([sys.executable, f"examples/{example}"], check=False) - -> assert result.returncode == 0, result.stdout -E AssertionError: None -E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/aiohttp_client.py'], returncode=1).returncode - -tests/integration/examples_test.py:22: AssertionError ------------------------------ Captured stderr call ----------------------------- -/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py:30: DeprecationWarning: There is no current event loop - loop = asyncio.get_event_loop() -Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py", line 31, in - loop.run_until_complete(main(loop)) - File "/usr/lib/python3.12/asyncio/base_events.py", line 686, in run_until_complete - return future.result() - ^^^^^^^^^^^^^^^ - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py", line 28, in main - await fetch(session, "http://httpbin.org/ip", bytearray("foo bar", "utf-8")) - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py", line 10, in fetch - with async_timeout.timeout(10): - ^^^^^^^^^^^^^^^^^^^^^^^^^ -TypeError: 'Timeout' object does not support the context manager protocol +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 = 'decorators.py' @@ -8281,7 +8321,7 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn raise NameResolutionError(self.host, self, e) from e -urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) +urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) The above exception was the direct cause of the following exception: @@ -8295,7 +8335,7 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /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: /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: @@ -8317,10 +8357,10 @@ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send raise ConnectionError(e, request=request) -requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) ______________________________ test_requests_get _______________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -8368,7 +8408,7 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET', url = '/', body = None headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -8606,7 +8646,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -8622,13 +8662,13 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -8710,9 +8750,9 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET', url = '/', response = None -error = NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)") -_pool = -_stacktrace = +error = NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)") +_pool = +_stacktrace = def increment( self, @@ -8806,7 +8846,7 @@ if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] -E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError @@ -8830,7 +8870,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -8924,12 +8964,12 @@ raise SSLError(e, request=request) > raise ConnectionError(e, request=request) -E requests.exceptions.ConnectionError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) +E requests.exceptions.ConnectionError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/requests/adapters.py:700: ConnectionError ___________________________ test_requests_match_url ____________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -8977,7 +9017,7 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET', url = '/', body = None headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -9215,7 +9255,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -9231,13 +9271,13 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -9319,9 +9359,9 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET', url = '/', response = None -error = NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)") -_pool = -_stacktrace = +error = NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)") +_pool = +_stacktrace = def increment( self, @@ -9415,7 +9455,7 @@ if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] -E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError @@ -9439,7 +9479,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -9533,12 +9573,12 @@ raise SSLError(e, request=request) > raise ConnectionError(e, request=request) -E requests.exceptions.ConnectionError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) +E requests.exceptions.ConnectionError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/requests/adapters.py:700: ConnectionError _______________________ test_requests_match_query_params _______________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -9586,7 +9626,7 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET', url = '/?foo=bar', body = None headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -9824,7 +9864,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -9840,13 +9880,13 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -9928,9 +9968,9 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET', url = '/?foo=bar', response = None -error = NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)") -_pool = -_stacktrace = +error = NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)") +_pool = +_stacktrace = def increment( self, @@ -10024,7 +10064,7 @@ if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] -E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: /?foo=bar (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='foo.com', port=80): Max retries exceeded with url: /?foo=bar (Caused by NameResolutionError(": Failed to resolve 'foo.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError @@ -10048,7 +10088,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -10142,13 +10182,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:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -10162,12 +10202,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:06] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:15] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' -url_500 = 'http://127.0.0.1:46721/status/500' +self = +url_404 = 'http://127.0.0.1:46255/status/404' +url_500 = 'http://127.0.0.1:46255/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -10187,12 +10227,12 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:06] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [15/Jan/2025 17:25:06] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:15] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [19/Feb/2026 01:50:15] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardAiohttp.test_network_mode_hostname ________________ -self = -req = , traces = [] +self = +req = , traces = [] timeout = ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=30, ceil_threshold=5) async def _create_direct_connection( @@ -10263,8 +10303,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:46721/status/401' +self = +url_401 = 'http://127.0.0.1:46255/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -10300,8 +10340,8 @@ _, proto = await self._create_direct_connection(req, traces, timeout) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -req = , traces = [] +self = +req = , traces = [] timeout = ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=30, ceil_threshold=5) async def _create_direct_connection( @@ -10339,11 +10379,11 @@ /usr/lib/python3/dist-packages/aiohttp/connector.py:1323: ClientConnectorDNSError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:06] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:15] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardAiohttp.test_multiple_network_filters _______________ -self = -url_401 = 'http://127.0.0.1:46721/status/401' +self = +url_401 = 'http://127.0.0.1:46255/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -10379,13 +10419,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:07] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:25:07] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:25:07] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:15] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:15] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:15] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardAiohttp.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -10402,11 +10442,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:15] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -10421,11 +10461,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:15] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAiohttp.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -10443,11 +10483,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:15] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardAiohttp.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -10464,11 +10504,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:15] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAiohttp.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -10482,11 +10522,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:15] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardAiohttp.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -10501,11 +10541,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:15] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAiohttp.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -10521,11 +10561,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:15] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAiohttp.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -10537,11 +10577,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:15] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -10555,12 +10595,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:16] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_network_mode ___________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' -url_500 = 'http://127.0.0.1:46721/status/500' +self = +url_404 = 'http://127.0.0.1:46255/status/404' +url_500 = 'http://127.0.0.1:46255/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -10580,8 +10620,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:07] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [15/Jan/2025 17:25:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:16] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [19/Feb/2026 01:50:16] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAsyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -10627,8 +10667,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:46721/status/401' +self = +url_401 = 'http://127.0.0.1:46255/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -10697,11 +10737,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:08] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:16] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardAsyncHttpx.test_multiple_network_filters _____________ -self = -url_401 = 'http://127.0.0.1:46721/status/401' +self = +url_401 = 'http://127.0.0.1:46255/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -10737,13 +10777,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:08] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:25:08] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:25:08] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:16] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:16] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:16] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardAsyncHttpx.test_json_request ___________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -10760,11 +10800,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:08] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:16] "GET /status/404 HTTP/1.1" 404 0 __________________ TestStandardAsyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -10779,11 +10819,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:16] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAsyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -10801,11 +10841,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:16] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -10822,11 +10862,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:16] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAsyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -10840,11 +10880,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:16] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -10859,11 +10899,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:16] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_mutli_value_response_headers ___________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -10879,11 +10919,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:16] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -10895,11 +10935,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:16] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -10913,12 +10953,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:16] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' -url_500 = 'http://127.0.0.1:46721/status/500' +self = +url_404 = 'http://127.0.0.1:46255/status/404' +url_500 = 'http://127.0.0.1:46255/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -10938,8 +10978,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:09] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [15/Jan/2025 17:25:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:16] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [19/Feb/2026 01:50:16] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardSyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -10983,8 +11023,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:46721/status/401' +self = +url_401 = 'http://127.0.0.1:46255/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -11051,11 +11091,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:09] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:16] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardSyncHttpx.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:46721/status/401' +self = +url_401 = 'http://127.0.0.1:46255/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -11091,13 +11131,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:10] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:25:10] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:25:10] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardSyncHttpx.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -11114,11 +11154,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:10] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -11133,11 +11173,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:10] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardSyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -11155,11 +11195,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:10] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardSyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -11176,11 +11216,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:10] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardSyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -11194,11 +11234,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -11213,11 +11253,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardSyncHttpx.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -11233,11 +11273,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardSyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -11249,10 +11289,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_sync ___________________________________ -URL = 'http://127.0.0.1:46721/status/404' +URL = 'http://127.0.0.1:46255/status/404' def test_sync(URL): pook.get(URL).times(1).reply(200).body("123") @@ -11265,10 +11305,10 @@ tests/unit/interceptors/httpx_test.py:43: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_json ___________________________________ -URL = 'http://127.0.0.1:46721/status/404' +URL = 'http://127.0.0.1:46255/status/404' def test_json(URL): ( @@ -11287,10 +11327,10 @@ tests/unit/interceptors/httpx_test.py:67: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:11] "POST /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "POST /status/404 HTTP/1.1" 404 0 __________________________ test_streaming[iter_bytes] __________________________ -URL = 'http://127.0.0.1:46721/status/404', response_method = 'iter_bytes' +URL = 'http://127.0.0.1:46255/status/404', response_method = 'iter_bytes' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -11307,10 +11347,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_streaming[iter_raw] ___________________________ -URL = 'http://127.0.0.1:46721/status/404', response_method = 'iter_raw' +URL = 'http://127.0.0.1:46255/status/404', response_method = 'iter_raw' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -11327,10 +11367,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_redirect_following ____________________________ -URL = 'http://127.0.0.1:46721/status/404' +URL = 'http://127.0.0.1:46255/status/404' def test_redirect_following(URL): urls = [URL, f"{URL}/redirected", f"{URL}/redirected_again"] @@ -11348,11 +11388,11 @@ tests/unit/interceptors/httpx_test.py:93: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -11366,12 +11406,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' -url_500 = 'http://127.0.0.1:46721/status/500' +self = +url_404 = 'http://127.0.0.1:46255/status/404' +url_500 = 'http://127.0.0.1:46255/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -11391,11 +11431,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:11] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [15/Jan/2025 17:25:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "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. @@ -11443,7 +11483,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> @@ -11679,7 +11719,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -11695,14 +11735,14 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:46721/status/401' +self = +url_401 = 'http://127.0.0.1:46255/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -11744,9 +11784,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, @@ -11840,19 +11880,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 - - [15/Jan/2025 17:25:11] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/401 HTTP/1.1" 401 0 ------------------------------ Captured log call ------------------------------- -WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / -WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / -WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / +WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / +WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / +WARNING urllib3.connectionpool:connectionpool.py:870 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")': / ______________ TestStandardUrllib3.test_multiple_network_filters _______________ -self = -url_401 = 'http://127.0.0.1:46721/status/401' +self = +url_401 = 'http://127.0.0.1:46255/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -11888,13 +11928,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:12] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:25:12] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:25:12] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardUrllib3.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -11911,11 +11951,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -11930,11 +11970,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardUrllib3.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -11952,11 +11992,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardUrllib3.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -11973,11 +12013,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardUrllib3.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -11991,11 +12031,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -12010,11 +12050,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardUrllib3.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -12030,11 +12070,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardUrllib3.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -12046,11 +12086,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -12064,12 +12104,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' -url_500 = 'http://127.0.0.1:46721/status/500' +self = +url_404 = 'http://127.0.0.1:46255/status/404' +url_500 = 'http://127.0.0.1:46255/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -12089,11 +12129,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:12] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [15/Jan/2025 17:25:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "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. @@ -12141,7 +12181,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) @@ -12379,7 +12419,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -12395,13 +12435,13 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -12483,9 +12523,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, @@ -12579,14 +12619,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:46721/status/401' +self = +url_401 = 'http://127.0.0.1:46255/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -12618,7 +12658,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -12712,15 +12752,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 - - [15/Jan/2025 17:25:12] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardRequests.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:46721/status/401' +self = +url_401 = 'http://127.0.0.1:46255/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -12756,13 +12796,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:12] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:25:12] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:25:12] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardRequests.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -12779,11 +12819,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardRequests.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -12798,11 +12838,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardRequests.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -12820,11 +12860,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:17] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -12841,11 +12881,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardRequests.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -12859,11 +12899,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -12878,11 +12918,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -12898,11 +12938,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -12914,10 +12954,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/404 HTTP/1.1" 404 0 ____________________________ test_post_with_headers ____________________________ -URL = 'http://127.0.0.1:46721/foo' +URL = 'http://127.0.0.1:46255/foo' @pytest.mark.pook def test_post_with_headers(URL): @@ -12926,15 +12966,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 - - [15/Jan/2025 17:25:13] "POST /foo HTTP/1.1" 404 207 +127.0.0.1 - - [19/Feb/2026 01:50:18] "POST /foo HTTP/1.1" 404 207 _____________________ TestUrllib.test_activate_deactivate ______________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -12948,12 +12988,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_network_mode _________________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' -url_500 = 'http://127.0.0.1:46721/status/500' +self = +url_404 = 'http://127.0.0.1:46255/status/404' +url_500 = 'http://127.0.0.1:46255/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -12973,14 +13013,14 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:13] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [15/Jan/2025 17:25:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestUrllib.test_network_mode_hostname _____________________ -self = +self = http_class = -req = , http_conn_args = {} -host = 'example.com', h = +req = , http_conn_args = {} +host = 'example.com', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.12'} def do_open(self, http_class, req, **http_conn_args): @@ -13072,8 +13112,8 @@ During handling of the above exception, another exception occurred: -self = -url_401 = 'http://127.0.0.1:46721/status/401' +self = +url_401 = 'http://127.0.0.1:46255/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -13109,10 +13149,10 @@ return self.do_open(http.client.HTTPConnection, req) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = http_class = -req = , http_conn_args = {} -host = 'example.com', h = +req = , http_conn_args = {} +host = 'example.com', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.12'} def do_open(self, http_class, req, **http_conn_args): @@ -13164,11 +13204,11 @@ /usr/lib/python3.12/urllib/request.py:1347: URLError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:13] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestUrllib.test_multiple_network_filters ___________________ -self = -url_401 = 'http://127.0.0.1:46721/status/401' +self = +url_401 = 'http://127.0.0.1:46255/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -13204,13 +13244,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:14] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:25:14] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [15/Jan/2025 17:25:14] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/401 HTTP/1.1" 401 0 _________________________ TestUrllib.test_json_request _________________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -13227,11 +13267,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:14] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/404 HTTP/1.1" 404 0 ________________________ TestUrllib.test_json_response _________________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -13246,11 +13286,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:14] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/404 HTTP/1.1" 404 0 __________________ TestUrllib.test_json_request_and_response ___________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -13268,11 +13308,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:14] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_header_sent __________________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -13287,11 +13327,11 @@ tests/unit/interceptors/base.py:205: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:14] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestUrllib.test_mocked_response_headers ____________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -13303,11 +13343,11 @@ tests/unit/interceptors/base.py:215: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:14] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestUrllib.test_mutli_value_headers ______________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -13322,11 +13362,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:14] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_mutli_value_response_headers _________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -13340,11 +13380,11 @@ tests/unit/interceptors/base.py:237: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:14] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_unmatched_headers_none_sent __________________ -self = -url_404 = 'http://127.0.0.1:46721/status/404' +self = +url_404 = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -13356,14 +13396,14 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:14] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/404 HTTP/1.1" 404 0 _______________________________ test_urllib_ssl ________________________________ -self = +self = http_class = -req = -http_conn_args = {'context': } -host = '127.0.0.1:9', h = +req = +http_conn_args = {'context': } +host = '127.0.0.1:9', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.12'} def do_open(self, http_class, req, **http_conn_args): @@ -13430,7 +13470,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, @@ -13486,11 +13526,11 @@ return self.do_open(http.client.HTTPSConnection, req, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = http_class = -req = -http_conn_args = {'context': } -host = '127.0.0.1:9', h = +req = +http_conn_args = {'context': } +host = '127.0.0.1:9', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.12'} def do_open(self, http_class, req, **http_conn_args): @@ -13543,10 +13583,10 @@ /usr/lib/python3.12/urllib/request.py:1347: URLError ______________________________ test_urllib_clear _______________________________ -self = +self = http_class = -req = , http_conn_args = {} -host = 'example.com', h = +req = , http_conn_args = {} +host = 'example.com', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.12'} def do_open(self, http_class, req, **http_conn_args): @@ -13657,10 +13697,10 @@ return self.do_open(http.client.HTTPConnection, req) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = http_class = -req = , http_conn_args = {} -host = 'example.com', h = +req = , http_conn_args = {} +host = 'example.com', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.12'} def do_open(self, http_class, req, **http_conn_args): @@ -13901,7 +13941,7 @@ tests/unit/matchers/headers_test.py:171: AssertionError ______________________ test_param_exists_empty_disallowed ______________________ -URL = 'http://127.0.0.1:46721/status/404' +URL = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_param_exists_empty_disallowed(URL): @@ -13924,10 +13964,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) @@ -13935,10 +13975,10 @@ /usr/lib/python3.12/urllib/request.py:639: HTTPError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:15] "GET /status/404?x HTTP/1.1" 404 0 +127.0.0.1 - - [19/Feb/2026 01:50:18] "GET /status/404?x HTTP/1.1" 404 0 _______________________ test_param_exists_empty_allowed ________________________ -URL = 'http://127.0.0.1:46721/status/404' +URL = 'http://127.0.0.1:46255/status/404' @pytest.mark.pook def test_param_exists_empty_allowed(URL): @@ -13960,18 +14000,16 @@ result = func(*args) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -req = -fp = , code = 404 -msg = 'NOT FOUND', hdrs = +self = +req = +fp = , code = 404 +msg = 'NOT FOUND', hdrs = def http_error_default(self, req, fp, code, msg, hdrs): > raise HTTPError(req.full_url, code, msg, hdrs, fp) E urllib.error.HTTPError: HTTP Error 404: NOT FOUND /usr/lib/python3.12/urllib/request.py:639: HTTPError ------------------------------ Captured stderr call ----------------------------- -127.0.0.1 - - [15/Jan/2025 17:25:16] "GET /status/404?x HTTP/1.1" 404 0 ________________________ test_mock_constructor[params] _________________________ param_kwargs = {'params': {'x': '1'}}, query_string = '?x=1' @@ -14040,7 +14078,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): @@ -14130,7 +14168,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): @@ -14297,11 +14335,11 @@ -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ -FAILED tests/integration/examples_test.py::test_examples[network_mode.py] - A... +FAILED tests/integration/examples_test.py::test_examples[aiohttp_client.py] +FAILED tests/integration/examples_test.py::test_examples[mock_context_manager.py] FAILED tests/integration/examples_test.py::test_examples[network_mode_httpx.py] FAILED tests/integration/examples_test.py::test_examples[urllib3_client.py] -FAILED tests/integration/examples_test.py::test_examples[mock_context_manager.py] -FAILED tests/integration/examples_test.py::test_examples[aiohttp_client.py] +FAILED tests/integration/examples_test.py::test_examples[network_mode.py] - A... FAILED tests/integration/examples_test.py::test_examples[decorators.py] - Ass... FAILED tests/integration/pook_requests_test.py::test_requests_get - requests.... FAILED tests/integration/pook_requests_test.py::test_requests_match_url - req... @@ -14392,7 +14430,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 48.64s ====== +===== 95 failed, 124 passed, 10 skipped, 3 xfailed, 42 warnings in 18.75s ====== E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build; python3.12 -m pytest tests dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.13 3.12" returned exit code 13 make[1]: Leaving directory '/build/reproducible-path/python-pook-2.1.3' @@ -14420,8 +14458,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 'python-pook-doc' in '../python-pook-doc_2.1.3-1_all.deb'. dpkg-deb: building package 'python3-pook' in '../python3-pook_2.1.3-1_all.deb'. +dpkg-deb: building package 'python-pook-doc' in '../python-pook-doc_2.1.3-1_all.deb'. dpkg-genbuildinfo --build=binary -O../python-pook_2.1.3-1_i386.buildinfo dpkg-genchanges --build=binary -O../python-pook_2.1.3-1_i386.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -14430,12 +14468,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/108655/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/108655/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/27056 and its subdirectories -I: Current time: Wed Jan 15 17:25:34 -12 2025 -I: pbuilder-time-stamp: 1737005134 +I: removing directory /srv/workspace/pbuilder/108655 and its subdirectories +I: Current time: Thu Feb 19 01:50:25 +14 2026 +I: pbuilder-time-stamp: 1771415425