Diff of the two buildlogs: -- --- b1/build.log 2025-01-10 23:54:35.114074247 +0000 +++ b2/build.log 2025-01-11 00:09:50.860205602 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Jan 10 11:49:56 -12 2025 -I: pbuilder-time-stamp: 1736552996 +I: Current time: Sat Jan 11 13:54:46 +14 2025 +I: pbuilder-time-stamp: 1736553286 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -25,52 +25,84 @@ dpkg-source: info: applying 020_fix-sufix_versions.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/20417/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/16502/tmp/hooks/D01_modify_environment starting +debug: Running on virt64c. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Jan 10 23:55 /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/16502/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/16502/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='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='armhf' + 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]="arm-unknown-linux-gnueabihf") + 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=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=4 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='171cb626c45a47eeaf77c79c1476c508' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='20417' - PS1='# ' - PS2='> ' + INVOCATION_ID=dddb7307066e4566815de289b449b30f + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + 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=16502 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.Olfv0Rdo/pbuilderrc_jvY6 --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.Olfv0Rdo/b1 --logfile b1/build.log python-pook_2.1.3-1.dsc' - SUDO_GID='110' - SUDO_UID='103' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:3142/' + 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.Olfv0Rdo/pbuilderrc_6YsK --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.Olfv0Rdo/b2 --logfile b2/build.log python-pook_2.1.3-1.dsc' + SUDO_GID=113 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:3142/ I: uname -a - Linux virt32z 6.1.0-28-armmp-lpae #1 SMP Debian 6.1.119-1 (2024-11-22) armv7l GNU/Linux + Linux i-capture-the-hostname 6.1.0-28-arm64 #1 SMP Debian 6.1.119-1 (2024-11-22) aarch64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/20417/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/16502/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -304,7 +336,7 @@ Get: 162 http://deb.debian.org/debian unstable/main armhf python3-sphinxcontrib.jquery all 4.1-5 [7348 B] Get: 163 http://deb.debian.org/debian unstable/main armhf python3-sphinx-rtd-theme all 3.0.2+dfsg-1 [29.5 kB] Get: 164 http://deb.debian.org/debian unstable/main armhf python3-xmltodict all 0.13.0-1 [16.7 kB] -Fetched 54.0 MB in 6s (8431 kB/s) +Fetched 54.0 MB in 1s (39.9 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 ... 19562 files and directories currently installed.) @@ -836,8 +868,8 @@ Setting up tzdata (2024b-5) ... Current default time zone: 'Etc/UTC' -Local time is now: Fri Jan 10 23:51:08 UTC 2025. -Universal Time is now: Fri Jan 10 23:51:08 UTC 2025. +Local time is now: Fri Jan 10 23:56:41 UTC 2025. +Universal Time is now: Fri Jan 10 23:56:41 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20220109.1) ... @@ -999,7 +1031,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/python-pook-2.1.3/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../python-pook_2.1.3-1_source.changes +I: user script /srv/workspace/pbuilder/16502/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/16502/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/python-pook-2.1.3/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../python-pook_2.1.3-1_source.changes dpkg-buildpackage: info: source package python-pook dpkg-buildpackage: info: source version 2.1.3-1 dpkg-buildpackage: info: source distribution unstable @@ -1054,9 +1090,9 @@ preparing documents... done copying assets... copying static files... +Writing evaluated template result to /build/reproducible-path/python-pook-2.1.3/build/html/_static/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/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... @@ -1101,20 +1137,21 @@ 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, cov-5.0.0, typeguard-4.4.1, anyio-4.7.0, httpbin-2.1.0 +plugins: pook-2.1.3, anyio-4.7.0, typeguard-4.4.1, httpbin-2.1.0, cov-5.0.0 collected 232 items tests/integration/engines_test.py .. [ 0%] -tests/integration/examples_test.py .F........F.F.FF....F.. [ 10%] +tests/integration/examples_test.py .......F.F.....FF..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 FFFFFFFFFFFFFFFFFFFFFFFFFsFFFF [ 37%] +tests/unit/interceptors/httpx_test.py FFFFFFFFFFFFFFFF127.0.0.1 - - [11/Jan/2025 14:03:39] "GET /status/404 HTTP/1.1" 404 0 +FFFF127.0.0.1 - - [11/Jan/2025 14:03:40] "GET /status/404 HTTP/1.1" 404 0 +FFFFFsFFFF [ 37%] tests/unit/interceptors/module_test.py . [ 38%] -tests/unit/interceptors/urllib3_test.py FFFFFFFFFFFFFFFFFFFFF127.0.0.1 - - [10/Jan/2025 11:53:28] "GET /status/404 HTTP/1.1" 404 0 -FFF........ [ 52%] +tests/unit/interceptors/urllib3_test.py FFFFFFFFFFFFFFFFFFFFFFFF........ [ 52%] F [ 52%] tests/unit/interceptors/urllib_test.py FFFFFFFFFFFFFF [ 58%] tests/unit/matchers/base_test.py .... [ 60%] @@ -1126,6 +1163,105 @@ tests/unit/regex_test.py .. [100%] =================================== FAILURES =================================== +________________________ test_examples[network_mode.py] ________________________ + +example = 'network_mode.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/network_mode.py'], returncode=1).returncode + +tests/integration/examples_test.py:22: AssertionError +----------------------------- Captured stdout call ----------------------------- +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 + sock = connection.create_connection( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection + for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.12/socket.py", line 976, in getaddrinfo + for res in _socket.getaddrinfo(host, port, family, type, proto, flags): + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +socket.gaierror: [Errno -3] Temporary failure in name resolution + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 789, in urlopen + response = self._make_request( + ^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 495, in _make_request + conn.request( + File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 441, in request + self.endheaders() + File "/usr/lib/python3.12/http/client.py", line 1331, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.12/http/client.py", line 1091, in _send_output + self.send(msg) + File "/usr/lib/python3.12/http/client.py", line 1035, in send + self.connect() + File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 279, in connect + self.sock = self._new_conn() + ^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn + raise NameResolutionError(self.host, self, e) from e +urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/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)")) + +During handling of the above exception, another exception occurred: + +Traceback (most recent call last): + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/network_mode.py", line 22, in + res = requests.get("http://httpbin.org/ip") + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/requests/api.py", line 73, in get + return request("get", url, params=params, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/requests/api.py", line 59, in request + return session.request(method=method, url=url, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/requests/sessions.py", line 589, in request + resp = self.send(prep, **send_kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/requests/sessions.py", line 703, in send + r = adapter.send(request, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send + raise ConnectionError(e, request=request) +requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) ____________________ test_examples[mock_context_manager.py] ____________________ example = 'mock_context_manager.py' @@ -1188,7 +1324,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: @@ -1202,7 +1338,7 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) During handling of the above exception, another exception occurred: @@ -1224,7 +1360,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[decorators.py] _________________________ example = 'decorators.py' @@ -1278,7 +1414,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: @@ -1292,7 +1428,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: @@ -1314,7 +1450,36 @@ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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_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 _______________________ test_examples[urllib3_client.py] _______________________ example = 'urllib3_client.py' @@ -1365,7 +1530,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: @@ -1397,7 +1562,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/404 (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/404 (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' @@ -1481,137 +1646,9 @@ File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno -3] Temporary failure in name resolution -________________________ test_examples[network_mode.py] ________________________ - -example = 'network_mode.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/network_mode.py'], returncode=1).returncode - -tests/integration/examples_test.py:22: AssertionError ------------------------------ Captured stdout call ----------------------------- -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 - sock = connection.create_connection( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection - for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3.12/socket.py", line 976, in getaddrinfo - for res in _socket.getaddrinfo(host, port, family, type, proto, flags): - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -socket.gaierror: [Errno -3] Temporary failure in name resolution - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 789, in urlopen - response = self._make_request( - ^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 495, in _make_request - conn.request( - File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 441, in request - self.endheaders() - File "/usr/lib/python3.12/http/client.py", line 1331, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - File "/usr/lib/python3.12/http/client.py", line 1091, in _send_output - self.send(msg) - File "/usr/lib/python3.12/http/client.py", line 1035, in send - self.connect() - File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 279, in connect - self.sock = self._new_conn() - ^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn - raise NameResolutionError(self.host, self, e) from e -urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/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)")) - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/network_mode.py", line 22, in - res = requests.get("http://httpbin.org/ip") - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/requests/api.py", line 73, in get - return request("get", url, params=params, **kwargs) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/requests/api.py", line 59, in request - return session.request(method=method, url=url, **kwargs) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/requests/sessions.py", line 589, in request - resp = self.send(prep, **send_kwargs) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/requests/sessions.py", line 703, in send - r = adapter.send(request, **kwargs) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send - raise ConnectionError(e, request=request) -requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) -_______________________ test_examples[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 ______________________________ test_requests_get _______________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -1659,7 +1696,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) @@ -1897,7 +1934,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -1913,13 +1950,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 @@ -2001,9 +2038,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, @@ -2097,7 +2134,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 @@ -2121,7 +2158,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -2215,12 +2252,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. @@ -2268,7 +2305,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) @@ -2506,7 +2543,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -2522,13 +2559,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 @@ -2610,9 +2647,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, @@ -2706,7 +2743,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 @@ -2730,7 +2767,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -2824,12 +2861,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. @@ -2877,7 +2914,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) @@ -3115,7 +3152,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -3131,13 +3168,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 @@ -3219,9 +3256,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, @@ -3315,7 +3352,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 @@ -3339,7 +3376,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -3433,13 +3470,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:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -3453,12 +3490,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:22] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:25] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' -url_500 = 'http://127.0.0.1:38963/status/500' +self = +url_404 = 'http://127.0.0.1:38353/status/404' +url_500 = 'http://127.0.0.1:38353/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -3478,12 +3515,12 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:22] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [10/Jan/2025 11:53:22] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:25] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [11/Jan/2025 14:03:25] "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( @@ -3554,8 +3591,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:38963/status/401' +self = +url_401 = 'http://127.0.0.1:38353/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -3591,8 +3628,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( @@ -3630,11 +3667,11 @@ /usr/lib/python3/dist-packages/aiohttp/connector.py:1341: ClientConnectorDNSError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:22] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:25] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardAiohttp.test_multiple_network_filters _______________ -self = -url_401 = 'http://127.0.0.1:38963/status/401' +self = +url_401 = 'http://127.0.0.1:38353/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -3670,13 +3707,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:23] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:53:23] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:53:23] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:27] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:27] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:27] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardAiohttp.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -3693,11 +3730,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:23] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:27] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -3712,11 +3749,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:23] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:27] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAiohttp.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -3734,11 +3771,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:23] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:27] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardAiohttp.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -3755,11 +3792,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:23] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:27] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAiohttp.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -3773,11 +3810,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:23] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:27] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardAiohttp.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -3792,11 +3829,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:23] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:27] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAiohttp.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -3812,11 +3849,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:23] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:27] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAiohttp.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -3828,11 +3865,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:23] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:28] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -3846,12 +3883,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:23] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:28] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_network_mode ___________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' -url_500 = 'http://127.0.0.1:38963/status/500' +self = +url_404 = 'http://127.0.0.1:38353/status/404' +url_500 = 'http://127.0.0.1:38353/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -3871,8 +3908,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:23] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [10/Jan/2025 11:53:23] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:28] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [11/Jan/2025 14:03:29] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAsyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -3918,8 +3955,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:38963/status/401' +self = +url_401 = 'http://127.0.0.1:38353/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -3988,11 +4025,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:23] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:29] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardAsyncHttpx.test_multiple_network_filters _____________ -self = -url_401 = 'http://127.0.0.1:38963/status/401' +self = +url_401 = 'http://127.0.0.1:38353/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -4028,13 +4065,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:24] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:53:24] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:53:24] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:31] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:31] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:32] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardAsyncHttpx.test_json_request ___________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -4051,11 +4088,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:24] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:32] "GET /status/404 HTTP/1.1" 404 0 __________________ TestStandardAsyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -4070,11 +4107,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:24] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:33] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAsyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -4092,11 +4129,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:24] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:33] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -4113,11 +4150,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:24] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:33] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAsyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -4131,11 +4168,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:24] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:34] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -4150,11 +4187,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:24] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:34] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_mutli_value_response_headers ___________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -4170,11 +4207,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:24] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:34] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -4186,11 +4223,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:24] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:35] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -4204,12 +4241,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:25] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:35] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' -url_500 = 'http://127.0.0.1:38963/status/500' +self = +url_404 = 'http://127.0.0.1:38353/status/404' +url_500 = 'http://127.0.0.1:38353/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -4229,8 +4266,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:25] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [10/Jan/2025 11:53:25] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:35] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [11/Jan/2025 14:03:36] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardSyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -4274,8 +4311,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:38963/status/401' +self = +url_401 = 'http://127.0.0.1:38353/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -4342,11 +4379,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:25] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:36] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardSyncHttpx.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:38963/status/401' +self = +url_401 = 'http://127.0.0.1:38353/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -4382,13 +4419,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:25] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:53:25] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:53:25] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:38] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:38] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:38] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardSyncHttpx.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -4404,12 +4441,10 @@ E AssertionError tests/unit/interceptors/base.py:167: AssertionError ------------------------------ Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:25] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -4424,11 +4459,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:26] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:39] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardSyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -4446,11 +4481,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:26] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:39] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardSyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -4467,11 +4502,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:26] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:40] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardSyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -4484,12 +4519,10 @@ E AssertionError tests/unit/interceptors/base.py:217: AssertionError ------------------------------ Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:26] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -4504,11 +4537,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:26] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:40] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardSyncHttpx.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -4524,11 +4557,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:26] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:41] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardSyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -4540,10 +4573,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:26] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:41] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_sync ___________________________________ -URL = 'http://127.0.0.1:38963/status/404' +URL = 'http://127.0.0.1:38353/status/404' def test_sync(URL): pook.get(URL).times(1).reply(200).body("123") @@ -4556,10 +4589,10 @@ tests/unit/interceptors/httpx_test.py:43: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:26] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:41] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_json ___________________________________ -URL = 'http://127.0.0.1:38963/status/404' +URL = 'http://127.0.0.1:38353/status/404' def test_json(URL): ( @@ -4578,10 +4611,10 @@ tests/unit/interceptors/httpx_test.py:67: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:26] "POST /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:42] "POST /status/404 HTTP/1.1" 404 0 __________________________ test_streaming[iter_bytes] __________________________ -URL = 'http://127.0.0.1:38963/status/404', response_method = 'iter_bytes' +URL = 'http://127.0.0.1:38353/status/404', response_method = 'iter_bytes' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -4598,10 +4631,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:26] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:42] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_streaming[iter_raw] ___________________________ -URL = 'http://127.0.0.1:38963/status/404', response_method = 'iter_raw' +URL = 'http://127.0.0.1:38353/status/404', response_method = 'iter_raw' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -4618,10 +4651,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:26] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:42] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_redirect_following ____________________________ -URL = 'http://127.0.0.1:38963/status/404' +URL = 'http://127.0.0.1:38353/status/404' def test_redirect_following(URL): urls = [URL, f"{URL}/redirected", f"{URL}/redirected_again"] @@ -4639,11 +4672,11 @@ tests/unit/interceptors/httpx_test.py:93: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:26] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:43] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -4657,12 +4690,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:26] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:43] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' -url_500 = 'http://127.0.0.1:38963/status/500' +self = +url_404 = 'http://127.0.0.1:38353/status/404' +url_500 = 'http://127.0.0.1:38353/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -4682,11 +4715,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:26] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [10/Jan/2025 11:53:26] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:43] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [11/Jan/2025 14:03:43] "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. @@ -4734,7 +4767,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> @@ -4970,7 +5003,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -4986,14 +5019,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:38963/status/401' +self = +url_401 = 'http://127.0.0.1:38353/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -5035,9 +5068,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, @@ -5131,19 +5164,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 - - [10/Jan/2025 11:53:27] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:43] "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:38963/status/401' +self = +url_401 = 'http://127.0.0.1:38353/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -5179,13 +5212,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:27] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:53:27] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:53:27] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:44] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:44] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:44] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardUrllib3.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -5202,11 +5235,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:27] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:44] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -5221,11 +5254,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:27] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:44] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardUrllib3.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -5243,11 +5276,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:27] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:44] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardUrllib3.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -5264,11 +5297,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:27] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:45] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardUrllib3.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -5282,11 +5315,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:27] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:45] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -5301,11 +5334,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:27] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:45] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardUrllib3.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -5321,11 +5354,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:27] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:45] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardUrllib3.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -5337,11 +5370,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:27] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:45] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -5355,12 +5388,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:27] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:45] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' -url_500 = 'http://127.0.0.1:38963/status/500' +self = +url_404 = 'http://127.0.0.1:38353/status/404' +url_500 = 'http://127.0.0.1:38353/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -5380,11 +5413,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:27] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [10/Jan/2025 11:53:27] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:45] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [11/Jan/2025 14:03:45] "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. @@ -5432,7 +5465,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) @@ -5670,7 +5703,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -5686,13 +5719,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 @@ -5774,9 +5807,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, @@ -5870,14 +5903,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:38963/status/401' +self = +url_401 = 'http://127.0.0.1:38353/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -5909,7 +5942,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -6003,15 +6036,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 - - [10/Jan/2025 11:53:27] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:45] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardRequests.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:38963/status/401' +self = +url_401 = 'http://127.0.0.1:38353/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -6047,13 +6080,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:27] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:53:27] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:53:27] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:46] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:46] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:46] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardRequests.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -6070,11 +6103,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:27] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:46] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardRequests.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -6089,11 +6122,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:28] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:47] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardRequests.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -6111,11 +6144,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:28] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:47] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -6132,11 +6165,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:28] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:47] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardRequests.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -6150,11 +6183,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:28] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:47] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -6168,10 +6201,12 @@ E AssertionError tests/unit/interceptors/base.py:228: AssertionError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [11/Jan/2025 14:03:47] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -6187,11 +6222,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:28] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:47] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -6203,10 +6238,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:28] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:47] "GET /status/404 HTTP/1.1" 404 0 ____________________________ test_post_with_headers ____________________________ -URL = 'http://127.0.0.1:38963/foo' +URL = 'http://127.0.0.1:38353/foo' @pytest.mark.pook def test_post_with_headers(URL): @@ -6215,15 +6250,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 - - [10/Jan/2025 11:53:28] "POST /foo HTTP/1.1" 404 207 +127.0.0.1 - - [11/Jan/2025 14:03:48] "POST /foo HTTP/1.1" 404 207 _____________________ TestUrllib.test_activate_deactivate ______________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -6237,12 +6272,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:28] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:48] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_network_mode _________________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' -url_500 = 'http://127.0.0.1:38963/status/500' +self = +url_404 = 'http://127.0.0.1:38353/status/404' +url_500 = 'http://127.0.0.1:38353/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -6262,14 +6297,14 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:28] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [10/Jan/2025 11:53:28] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:48] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [11/Jan/2025 14:03:48] "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): @@ -6361,8 +6396,8 @@ During handling of the above exception, another exception occurred: -self = -url_401 = 'http://127.0.0.1:38963/status/401' +self = +url_401 = 'http://127.0.0.1:38353/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -6398,10 +6433,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): @@ -6453,11 +6488,11 @@ /usr/lib/python3.12/urllib/request.py:1347: URLError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:28] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:48] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestUrllib.test_multiple_network_filters ___________________ -self = -url_401 = 'http://127.0.0.1:38963/status/401' +self = +url_401 = 'http://127.0.0.1:38353/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -6493,13 +6528,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:29] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:53:29] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:53:29] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:51] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:51] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:03:51] "GET /status/401 HTTP/1.1" 401 0 _________________________ TestUrllib.test_json_request _________________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -6516,11 +6551,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:29] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:51] "GET /status/404 HTTP/1.1" 404 0 ________________________ TestUrllib.test_json_response _________________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -6535,11 +6570,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:29] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:51] "GET /status/404 HTTP/1.1" 404 0 __________________ TestUrllib.test_json_request_and_response ___________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -6557,11 +6592,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:29] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:51] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_header_sent __________________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -6576,11 +6611,11 @@ tests/unit/interceptors/base.py:205: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:29] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:51] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestUrllib.test_mocked_response_headers ____________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -6592,11 +6627,11 @@ tests/unit/interceptors/base.py:215: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:29] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:51] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestUrllib.test_mutli_value_headers ______________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -6611,11 +6646,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:29] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:51] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_mutli_value_response_headers _________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -6629,11 +6664,11 @@ tests/unit/interceptors/base.py:237: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:29] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:51] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_unmatched_headers_none_sent __________________ -self = -url_404 = 'http://127.0.0.1:38963/status/404' +self = +url_404 = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -6645,14 +6680,14 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:29] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:51] "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): @@ -6719,7 +6754,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, @@ -6775,11 +6810,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): @@ -6832,10 +6867,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): @@ -6946,10 +6981,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): @@ -7190,7 +7225,7 @@ tests/unit/matchers/headers_test.py:171: AssertionError ______________________ test_param_exists_empty_disallowed ______________________ -URL = 'http://127.0.0.1:38963/status/404' +URL = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_param_exists_empty_disallowed(URL): @@ -7213,10 +7248,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) @@ -7224,10 +7259,10 @@ /usr/lib/python3.12/urllib/request.py:639: HTTPError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:30] "GET /status/404?x HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:57] "GET /status/404?x HTTP/1.1" 404 0 _______________________ test_param_exists_empty_allowed ________________________ -URL = 'http://127.0.0.1:38963/status/404' +URL = 'http://127.0.0.1:38353/status/404' @pytest.mark.pook def test_param_exists_empty_allowed(URL): @@ -7249,10 +7284,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) @@ -7260,7 +7295,7 @@ /usr/lib/python3.12/urllib/request.py:639: HTTPError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:53:31] "GET /status/404?x HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:03:59] "GET /status/404?x HTTP/1.1" 404 0 ________________________ test_mock_constructor[params] _________________________ param_kwargs = {'params': {'x': '1'}}, query_string = '?x=1' @@ -7329,7 +7364,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): @@ -7419,7 +7454,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): @@ -7586,12 +7621,12 @@ -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ +FAILED tests/integration/examples_test.py::test_examples[network_mode.py] - A... FAILED tests/integration/examples_test.py::test_examples[mock_context_manager.py] FAILED tests/integration/examples_test.py::test_examples[decorators.py] - Ass... +FAILED tests/integration/examples_test.py::test_examples[aiohttp_client.py] FAILED tests/integration/examples_test.py::test_examples[urllib3_client.py] FAILED tests/integration/examples_test.py::test_examples[network_mode_httpx.py] -FAILED tests/integration/examples_test.py::test_examples[network_mode.py] - A... -FAILED tests/integration/examples_test.py::test_examples[aiohttp_client.py] FAILED tests/integration/pook_requests_test.py::test_requests_get - requests.... FAILED tests/integration/pook_requests_test.py::test_requests_match_url - req... FAILED tests/integration/pook_requests_test.py::test_requests_match_query_params @@ -7681,7 +7716,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 45.80s ====== += 95 failed, 124 passed, 10 skipped, 3 xfailed, 42 warnings in 181.42s (0:03:01) = E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build; python3.12 -m pytest tests I: pybuild pybuild:308: cp -r /build/reproducible-path/python-pook-2.1.3/examples /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build ; rm -f /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/mocket_example.py I: pybuild base:311: cd /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build; python3.13 -m pytest tests @@ -7689,18 +7724,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, cov-5.0.0, typeguard-4.4.1, anyio-4.7.0, httpbin-2.1.0 +plugins: pook-2.1.3, anyio-4.7.0, typeguard-4.4.1, httpbin-2.1.0, cov-5.0.0 collected 232 items tests/integration/engines_test.py .. [ 0%] -tests/integration/examples_test.py .F........F.F.FF....F.. [ 10%] +tests/integration/examples_test.py .......F.F.....FF..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 FFFFFFFF127.0.0.1 - - [10/Jan/2025 11:54:09] "GET /status/404 HTTP/1.1" 404 0 -FFFFFFFFFFFFFFFFFsFFFF [ 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%] @@ -7714,6 +7748,129 @@ tests/unit/regex_test.py .. [100%] =================================== FAILURES =================================== +________________________ test_examples[network_mode.py] ________________________ + +example = 'network_mode.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/network_mode.py'], returncode=1).returncode + +tests/integration/examples_test.py:22: AssertionError +----------------------------- Captured stdout call ----------------------------- +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 + sock = connection.create_connection( + (self._dns_host, self.port), + ...<2 lines>... + socket_options=self.socket_options, + ) + File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection + for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): + ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.13/socket.py", line 975, in getaddrinfo + for res in _socket.getaddrinfo(host, port, family, type, proto, flags): + ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +socket.gaierror: [Errno -3] Temporary failure in name resolution + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 789, in urlopen + response = self._make_request( + conn, + ...<10 lines>... + **response_kw, + ) + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 495, in _make_request + conn.request( + ~~~~~~~~~~~~^ + method, + ^^^^^^^ + ...<6 lines>... + enforce_content_length=enforce_content_length, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ) + ^ + File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 441, in request + self.endheaders() + ~~~~~~~~~~~~~~~^^ + File "/usr/lib/python3.13/http/client.py", line 1331, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.13/http/client.py", line 1091, in _send_output + self.send(msg) + ~~~~~~~~~^^^^^ + File "/usr/lib/python3.13/http/client.py", line 1035, in send + self.connect() + ~~~~~~~~~~~~^^ + File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 279, in connect + self.sock = self._new_conn() + ~~~~~~~~~~~~~~^^ + File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn + raise NameResolutionError(self.host, self, e) from e +urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/requests/adapters.py", line 667, in send + resp = conn.urlopen( + method=request.method, + ...<9 lines>... + chunked=chunked, + ) + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/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] + ) + File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment + raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) + +During handling of the above exception, another exception occurred: + +Traceback (most recent call last): + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/network_mode.py", line 22, in + res = requests.get("http://httpbin.org/ip") + File "/usr/lib/python3/dist-packages/requests/api.py", line 73, in get + return request("get", url, params=params, **kwargs) + File "/usr/lib/python3/dist-packages/requests/api.py", line 59, in request + return session.request(method=method, url=url, **kwargs) + ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/requests/sessions.py", line 589, in request + resp = self.send(prep, **send_kwargs) + File "/usr/lib/python3/dist-packages/requests/sessions.py", line 703, in send + r = adapter.send(request, **kwargs) + File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send + raise ConnectionError(e, request=request) +requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) ____________________ test_examples[mock_context_manager.py] ____________________ example = 'mock_context_manager.py' @@ -7794,7 +7951,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: @@ -7812,7 +7969,7 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) During handling of the above exception, another exception occurred: @@ -7830,7 +7987,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[decorators.py] _________________________ example = 'decorators.py' @@ -7902,7 +8059,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: @@ -7920,7 +8077,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: @@ -7938,7 +8095,37 @@ 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_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 _______________________ test_examples[urllib3_client.py] _______________________ example = 'urllib3_client.py' @@ -8007,7 +8194,7 @@ ~~~~~~~~~~~~~~^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn raise NameResolutionError(self.host, self, e) from e -urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) +urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) The above exception was the direct cause of the following exception: @@ -8066,7 +8253,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/404 (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/404 (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' @@ -8163,162 +8350,9 @@ File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno -3] Temporary failure in name resolution -________________________ test_examples[network_mode.py] ________________________ - -example = 'network_mode.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/network_mode.py'], returncode=1).returncode - -tests/integration/examples_test.py:22: AssertionError ------------------------------ Captured stdout call ----------------------------- -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 - sock = connection.create_connection( - (self._dns_host, self.port), - ...<2 lines>... - socket_options=self.socket_options, - ) - File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection - for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): - ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3.13/socket.py", line 975, in getaddrinfo - for res in _socket.getaddrinfo(host, port, family, type, proto, flags): - ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -socket.gaierror: [Errno -3] Temporary failure in name resolution - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 789, in urlopen - response = self._make_request( - conn, - ...<10 lines>... - **response_kw, - ) - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 495, in _make_request - conn.request( - ~~~~~~~~~~~~^ - method, - ^^^^^^^ - ...<6 lines>... - enforce_content_length=enforce_content_length, - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ) - ^ - File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 441, in request - self.endheaders() - ~~~~~~~~~~~~~~~^^ - File "/usr/lib/python3.13/http/client.py", line 1331, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3.13/http/client.py", line 1091, in _send_output - self.send(msg) - ~~~~~~~~~^^^^^ - File "/usr/lib/python3.13/http/client.py", line 1035, in send - self.connect() - ~~~~~~~~~~~~^^ - File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 279, in connect - self.sock = self._new_conn() - ~~~~~~~~~~~~~~^^ - File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 206, in _new_conn - raise NameResolutionError(self.host, self, e) from e -urllib3.exceptions.NameResolutionError: : Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution) - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/usr/lib/python3/dist-packages/requests/adapters.py", line 667, in send - resp = conn.urlopen( - method=request.method, - ...<9 lines>... - chunked=chunked, - ) - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/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] - ) - File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment - raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/network_mode.py", line 22, in - res = requests.get("http://httpbin.org/ip") - File "/usr/lib/python3/dist-packages/requests/api.py", line 73, in get - return request("get", url, params=params, **kwargs) - File "/usr/lib/python3/dist-packages/requests/api.py", line 59, in request - return session.request(method=method, url=url, **kwargs) - ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/requests/sessions.py", line 589, in request - resp = self.send(prep, **send_kwargs) - File "/usr/lib/python3/dist-packages/requests/sessions.py", line 703, in send - r = adapter.send(request, **kwargs) - File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send - raise ConnectionError(e, request=request) -requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) -_______________________ test_examples[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 ______________________________ test_requests_get _______________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -8366,7 +8400,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) @@ -8604,7 +8638,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -8620,13 +8654,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 @@ -8708,9 +8742,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, @@ -8804,7 +8838,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 @@ -8828,7 +8862,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -8922,12 +8956,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. @@ -8975,7 +9009,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) @@ -9213,7 +9247,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -9229,13 +9263,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 @@ -9317,9 +9351,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, @@ -9413,7 +9447,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 @@ -9437,7 +9471,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -9531,12 +9565,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. @@ -9584,7 +9618,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) @@ -9822,7 +9856,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -9838,13 +9872,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 @@ -9926,9 +9960,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, @@ -10022,7 +10056,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 @@ -10046,7 +10080,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -10140,13 +10174,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:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -10159,13 +10193,13 @@ E AssertionError tests/unit/interceptors/base.py:74: AssertionError ------------------------------ Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:07] "GET /status/404 HTTP/1.1" 404 0 +--------------------------- Captured stderr teardown --------------------------- +127.0.0.1 - - [11/Jan/2025 14:07:31] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' -url_500 = 'http://127.0.0.1:33347/status/500' +self = +url_404 = 'http://127.0.0.1:38187/status/404' +url_500 = 'http://127.0.0.1:38187/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -10185,12 +10219,12 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:07] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [10/Jan/2025 11:54:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:31] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [11/Jan/2025 14:07:31] "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( @@ -10261,8 +10295,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:33347/status/401' +self = +url_401 = 'http://127.0.0.1:38187/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -10298,8 +10332,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( @@ -10337,11 +10371,11 @@ /usr/lib/python3/dist-packages/aiohttp/connector.py:1341: ClientConnectorDNSError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:07] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:07:31] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardAiohttp.test_multiple_network_filters _______________ -self = -url_401 = 'http://127.0.0.1:33347/status/401' +self = +url_401 = 'http://127.0.0.1:38187/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -10377,13 +10411,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:08] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:54:08] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:54:08] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:07:35] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:07:35] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:07:35] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardAiohttp.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -10400,11 +10434,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:08] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:35] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -10419,11 +10453,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:08] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:35] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAiohttp.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -10441,11 +10475,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:08] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:35] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardAiohttp.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -10462,11 +10496,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:08] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:36] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAiohttp.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -10480,11 +10514,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:08] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:36] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardAiohttp.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -10499,11 +10533,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:08] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:36] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAiohttp.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -10519,11 +10553,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:08] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:36] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAiohttp.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -10535,11 +10569,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:08] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:36] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -10553,12 +10587,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:08] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:38] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_network_mode ___________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' -url_500 = 'http://127.0.0.1:33347/status/500' +self = +url_404 = 'http://127.0.0.1:38187/status/404' +url_500 = 'http://127.0.0.1:38187/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -10578,8 +10612,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:08] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [10/Jan/2025 11:54:08] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:38] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [11/Jan/2025 14:07:39] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAsyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -10625,8 +10659,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:33347/status/401' +self = +url_401 = 'http://127.0.0.1:38187/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -10695,11 +10729,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:08] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:07:40] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardAsyncHttpx.test_multiple_network_filters _____________ -self = -url_401 = 'http://127.0.0.1:33347/status/401' +self = +url_401 = 'http://127.0.0.1:38187/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -10735,13 +10769,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:09] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:54:09] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:54:09] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:07:44] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:07:45] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:07:45] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardAsyncHttpx.test_json_request ___________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -10758,11 +10792,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:46] "GET /status/404 HTTP/1.1" 404 0 __________________ TestStandardAsyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -10777,11 +10811,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:47] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAsyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -10799,11 +10833,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:48] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -10820,11 +10854,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:49] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAsyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -10837,10 +10871,12 @@ E AssertionError tests/unit/interceptors/base.py:217: AssertionError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [11/Jan/2025 14:07:50] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -10855,11 +10891,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:50] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_mutli_value_response_headers ___________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -10875,11 +10911,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:51] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -10891,11 +10927,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:51] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -10909,12 +10945,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:10] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:52] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' -url_500 = 'http://127.0.0.1:33347/status/500' +self = +url_404 = 'http://127.0.0.1:38187/status/404' +url_500 = 'http://127.0.0.1:38187/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -10934,8 +10970,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:10] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [10/Jan/2025 11:54:10] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:52] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [11/Jan/2025 14:07:53] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardSyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -10979,8 +11015,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:33347/status/401' +self = +url_401 = 'http://127.0.0.1:38187/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -11047,11 +11083,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:10] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:07:53] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardSyncHttpx.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:33347/status/401' +self = +url_401 = 'http://127.0.0.1:38187/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -11087,13 +11123,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:10] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:54:10] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:54:10] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:07:55] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:07:55] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:07:56] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardSyncHttpx.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -11110,11 +11146,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:10] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:56] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -11129,11 +11165,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:10] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:57] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardSyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -11151,11 +11187,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:57] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardSyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -11172,11 +11208,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:57] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardSyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -11190,11 +11226,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:57] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -11209,11 +11245,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:58] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardSyncHttpx.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -11229,11 +11265,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:58] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardSyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -11245,10 +11281,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:59] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_sync ___________________________________ -URL = 'http://127.0.0.1:33347/status/404' +URL = 'http://127.0.0.1:38187/status/404' def test_sync(URL): pook.get(URL).times(1).reply(200).body("123") @@ -11261,10 +11297,10 @@ tests/unit/interceptors/httpx_test.py:43: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:07:59] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_json ___________________________________ -URL = 'http://127.0.0.1:33347/status/404' +URL = 'http://127.0.0.1:38187/status/404' def test_json(URL): ( @@ -11283,10 +11319,10 @@ tests/unit/interceptors/httpx_test.py:67: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:11] "POST /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:00] "POST /status/404 HTTP/1.1" 404 0 __________________________ test_streaming[iter_bytes] __________________________ -URL = 'http://127.0.0.1:33347/status/404', response_method = 'iter_bytes' +URL = 'http://127.0.0.1:38187/status/404', response_method = 'iter_bytes' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -11303,10 +11339,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:00] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_streaming[iter_raw] ___________________________ -URL = 'http://127.0.0.1:33347/status/404', response_method = 'iter_raw' +URL = 'http://127.0.0.1:38187/status/404', response_method = 'iter_raw' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -11323,10 +11359,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:00] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_redirect_following ____________________________ -URL = 'http://127.0.0.1:33347/status/404' +URL = 'http://127.0.0.1:38187/status/404' def test_redirect_following(URL): urls = [URL, f"{URL}/redirected", f"{URL}/redirected_again"] @@ -11344,11 +11380,11 @@ tests/unit/interceptors/httpx_test.py:93: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:01] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -11362,12 +11398,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:01] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' -url_500 = 'http://127.0.0.1:33347/status/500' +self = +url_404 = 'http://127.0.0.1:38187/status/404' +url_500 = 'http://127.0.0.1:38187/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -11387,11 +11423,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:11] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [10/Jan/2025 11:54:11] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:01] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [11/Jan/2025 14:08:01] "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. @@ -11439,7 +11475,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> @@ -11675,7 +11711,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -11691,14 +11727,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:33347/status/401' +self = +url_401 = 'http://127.0.0.1:38187/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -11740,9 +11776,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, @@ -11836,19 +11872,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 - - [10/Jan/2025 11:54:11] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:08:01] "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:33347/status/401' +self = +url_401 = 'http://127.0.0.1:38187/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -11884,13 +11920,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:08:03] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:08:03] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:08:03] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardUrllib3.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -11907,11 +11943,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:03] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -11926,11 +11962,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:03] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardUrllib3.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -11948,11 +11984,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:03] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardUrllib3.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -11969,11 +12005,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:03] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardUrllib3.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -11987,11 +12023,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:04] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -12006,11 +12042,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:04] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardUrllib3.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -12026,11 +12062,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:04] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardUrllib3.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -12042,11 +12078,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:04] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -12060,12 +12096,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:04] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' -url_500 = 'http://127.0.0.1:33347/status/500' +self = +url_404 = 'http://127.0.0.1:38187/status/404' +url_500 = 'http://127.0.0.1:38187/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -12085,11 +12121,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:04] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [11/Jan/2025 14:08:04] "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. @@ -12137,7 +12173,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) @@ -12375,7 +12411,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -12391,13 +12427,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 @@ -12479,9 +12515,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, @@ -12575,14 +12611,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:33347/status/401' +self = +url_401 = 'http://127.0.0.1:38187/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -12614,7 +12650,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -12708,15 +12744,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 - - [10/Jan/2025 11:54:12] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:08:04] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardRequests.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:33347/status/401' +self = +url_401 = 'http://127.0.0.1:38187/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -12752,13 +12788,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:08:05] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:08:05] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:08:05] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardRequests.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -12775,11 +12811,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:05] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardRequests.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -12794,11 +12830,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:05] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardRequests.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -12816,11 +12852,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:05] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -12837,11 +12873,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:05] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardRequests.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -12855,11 +12891,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:05] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -12874,11 +12910,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:06] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -12894,11 +12930,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:06] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -12910,10 +12946,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:06] "GET /status/404 HTTP/1.1" 404 0 ____________________________ test_post_with_headers ____________________________ -URL = 'http://127.0.0.1:33347/foo' +URL = 'http://127.0.0.1:38187/foo' @pytest.mark.pook def test_post_with_headers(URL): @@ -12922,15 +12958,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 - - [10/Jan/2025 11:54:13] "POST /foo HTTP/1.1" 404 207 +127.0.0.1 - - [11/Jan/2025 14:08:06] "POST /foo HTTP/1.1" 404 207 _____________________ TestUrllib.test_activate_deactivate ______________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -12944,12 +12980,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:06] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_network_mode _________________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' -url_500 = 'http://127.0.0.1:33347/status/500' +self = +url_404 = 'http://127.0.0.1:38187/status/404' +url_500 = 'http://127.0.0.1:38187/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -12969,14 +13005,14 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:13] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [10/Jan/2025 11:54:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:06] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [11/Jan/2025 14:08:06] "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): @@ -13068,8 +13104,8 @@ During handling of the above exception, another exception occurred: -self = -url_401 = 'http://127.0.0.1:33347/status/401' +self = +url_401 = 'http://127.0.0.1:38187/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -13105,10 +13141,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): @@ -13160,11 +13196,11 @@ /usr/lib/python3.13/urllib/request.py:1322: URLError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:13] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:08:06] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestUrllib.test_multiple_network_filters ___________________ -self = -url_401 = 'http://127.0.0.1:33347/status/401' +self = +url_401 = 'http://127.0.0.1:38187/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -13200,13 +13236,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:13] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:54:13] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [10/Jan/2025 11:54:13] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:08:09] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:08:09] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [11/Jan/2025 14:08:09] "GET /status/401 HTTP/1.1" 401 0 _________________________ TestUrllib.test_json_request _________________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -13223,11 +13259,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:09] "GET /status/404 HTTP/1.1" 404 0 ________________________ TestUrllib.test_json_response _________________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -13242,11 +13278,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:09] "GET /status/404 HTTP/1.1" 404 0 __________________ TestUrllib.test_json_request_and_response ___________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -13264,11 +13300,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:09] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_header_sent __________________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -13283,11 +13319,11 @@ tests/unit/interceptors/base.py:205: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:09] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestUrllib.test_mocked_response_headers ____________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -13299,11 +13335,11 @@ tests/unit/interceptors/base.py:215: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:09] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestUrllib.test_mutli_value_headers ______________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -13318,11 +13354,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:09] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_mutli_value_response_headers _________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -13336,11 +13372,11 @@ tests/unit/interceptors/base.py:237: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:09] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_unmatched_headers_none_sent __________________ -self = -url_404 = 'http://127.0.0.1:33347/status/404' +self = +url_404 = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -13352,14 +13388,14 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:09] "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): @@ -13426,7 +13462,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, @@ -13482,11 +13518,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): @@ -13539,10 +13575,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): @@ -13653,10 +13689,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): @@ -13897,7 +13933,7 @@ tests/unit/matchers/headers_test.py:171: AssertionError ______________________ test_param_exists_empty_disallowed ______________________ -URL = 'http://127.0.0.1:33347/status/404' +URL = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_param_exists_empty_disallowed(URL): @@ -13920,10 +13956,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) @@ -13931,10 +13967,10 @@ /usr/lib/python3.13/urllib/request.py:613: HTTPError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:15] "GET /status/404?x HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:15] "GET /status/404?x HTTP/1.1" 404 0 _______________________ test_param_exists_empty_allowed ________________________ -URL = 'http://127.0.0.1:33347/status/404' +URL = 'http://127.0.0.1:38187/status/404' @pytest.mark.pook def test_param_exists_empty_allowed(URL): @@ -13956,10 +13992,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) @@ -13967,7 +14003,7 @@ /usr/lib/python3.13/urllib/request.py:613: HTTPError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [10/Jan/2025 11:54:15] "GET /status/404?x HTTP/1.1" 404 0 +127.0.0.1 - - [11/Jan/2025 14:08:17] "GET /status/404?x HTTP/1.1" 404 0 ________________________ test_mock_constructor[params] _________________________ param_kwargs = {'params': {'x': '1'}}, query_string = '?x=1' @@ -14036,7 +14072,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): @@ -14126,7 +14162,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): @@ -14293,12 +14329,12 @@ -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ +FAILED tests/integration/examples_test.py::test_examples[network_mode.py] - A... FAILED tests/integration/examples_test.py::test_examples[mock_context_manager.py] FAILED tests/integration/examples_test.py::test_examples[decorators.py] - Ass... +FAILED tests/integration/examples_test.py::test_examples[aiohttp_client.py] FAILED tests/integration/examples_test.py::test_examples[urllib3_client.py] FAILED tests/integration/examples_test.py::test_examples[network_mode_httpx.py] -FAILED tests/integration/examples_test.py::test_examples[network_mode.py] - A... -FAILED tests/integration/examples_test.py::test_examples[aiohttp_client.py] FAILED tests/integration/pook_requests_test.py::test_requests_get - requests.... FAILED tests/integration/pook_requests_test.py::test_requests_match_url - req... FAILED tests/integration/pook_requests_test.py::test_requests_match_query_params @@ -14388,7 +14424,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 41.36s ====== += 95 failed, 124 passed, 10 skipped, 3 xfailed, 42 warnings in 250.45s (0:04:10) = E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build; python3.13 -m pytest tests dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.13" returned exit code 13 make[1]: Leaving directory '/build/reproducible-path/python-pook-2.1.3' @@ -14426,12 +14462,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/16502/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/16502/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/20417 and its subdirectories -I: Current time: Fri Jan 10 11:54:30 -12 2025 -I: pbuilder-time-stamp: 1736553270 +I: removing directory /srv/workspace/pbuilder/16502 and its subdirectories +I: Current time: Sat Jan 11 14:09:46 +14 2025 +I: pbuilder-time-stamp: 1736554186