Diff of the two buildlogs: -- --- b1/build.log 2025-01-14 16:37:27.266426597 +0000 +++ b2/build.log 2025-01-14 16:46:21.917996195 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Jan 14 04:03:42 -12 2025 -I: pbuilder-time-stamp: 1736870622 +I: Current time: Wed Jan 15 06:37:38 +14 2025 +I: pbuilder-time-stamp: 1736872658 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-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/7671/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/16902/tmp/hooks/D01_modify_environment starting +debug: Running on virt64b. +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 14 16:37 /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/16902/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/16902/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='trixie' - 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=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='39ac488d092a41ebbd648cbcf8a4c4c0' - 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='7671' - PS1='# ' - PS2='> ' + INVOCATION_ID=387b1a4fa8e84c6497938e80dec3e34d + 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=16902 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.sHg850q1/pbuilderrc_CC3b --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.sHg850q1/b1 --logfile b1/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+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.sHg850q1/pbuilderrc_pOMI --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.sHg850q1/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 wbq0 6.1.0-29-armmp #1 SMP Debian 6.1.123-1 (2025-01-02) armv7l GNU/Linux + Linux i-capture-the-hostname 6.1.0-29-arm64 #1 SMP Debian 6.1.123-1 (2025-01-02) 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/7671/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/16902/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 trixie/main armhf python3-sphinxcontrib.jquery all 4.1-5 [7348 B] Get: 163 http://deb.debian.org/debian trixie/main armhf python3-sphinx-rtd-theme all 3.0.2+dfsg-1 [29.5 kB] Get: 164 http://deb.debian.org/debian trixie/main armhf python3-xmltodict all 0.13.0-1 [16.7 kB] -Fetched 53.9 MB in 9s (5873 kB/s) +Fetched 53.9 MB in 2s (24.1 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 ... 19567 files and directories currently installed.) @@ -835,8 +867,8 @@ Setting up tzdata (2024b-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Tue Jan 14 16:09:05 UTC 2025. -Universal Time is now: Tue Jan 14 16:09:05 UTC 2025. +Local time is now: Tue Jan 14 16:39:52 UTC 2025. +Universal Time is now: Tue Jan 14 16:39:52 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libpython3.13-minimal:armhf (3.13.1-3) ... @@ -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/16902/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/16902/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/python-pook-2.1.3/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../python-pook_2.1.3-1_source.changes dpkg-buildpackage: info: source package python-pook dpkg-buildpackage: info: source version 2.1.3-1 dpkg-buildpackage: info: source distribution unstable @@ -1054,9 +1090,9 @@ preparing documents... done copying assets... copying static files... -Writing evaluated template result to /build/reproducible-path/python-pook-2.1.3/build/html/_static/documentation_options.js Writing evaluated template result to /build/reproducible-path/python-pook-2.1.3/build/html/_static/language_data.js Writing evaluated template result to /build/reproducible-path/python-pook-2.1.3/build/html/_static/basic.css +Writing evaluated template result to /build/reproducible-path/python-pook-2.1.3/build/html/_static/documentation_options.js Writing evaluated template result to /build/reproducible-path/python-pook-2.1.3/build/html/_static/js/versions.js copying static files: done copying extra files... @@ -1101,26 +1137,21 @@ platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 rootdir: /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build configfile: pyproject.toml -plugins: pook-2.1.3, typeguard-4.4.1, anyio-4.7.0, cov-5.0.0, httpbin-2.1.0 +plugins: pook-2.1.3, httpbin-2.1.0, anyio-4.7.0, cov-5.0.0, typeguard-4.4.1 collected 232 items tests/integration/engines_test.py .. [ 0%] -tests/integration/examples_test.py F.F..F..F...F.....F.... [ 10%] +tests/integration/examples_test.py .....F....F...F....F.FF [ 10%] tests/integration/pook_requests_test.py FFF [ 12%] tests/unit/api_test.py ......s [ 15%] tests/unit/engine_test.py .. [ 15%] tests/unit/exceptions_test.py . [ 16%] -tests/unit/interceptors/aiohttp_test.py FFFFFF127.0.0.1 - - [14/Jan/2025 04:27:37] "GET /status/404 HTTP/1.1" 404 0 -FFFFFFssssssss [ 25%] +tests/unit/interceptors/aiohttp_test.py FFFFFFFFFFFFssssssss [ 25%] tests/unit/interceptors/httpx_test.py FFFFFFFFFFFFFFFFFFFFFFFFFsFFFF [ 37%] tests/unit/interceptors/module_test.py . [ 38%] -tests/unit/interceptors/urllib3_test.py FFFFFFFFFF127.0.0.1 - - [14/Jan/2025 04:28:12] "GET /status/404 HTTP/1.1" 404 0 -FFFFFFF127.0.0.1 - - [14/Jan/2025 04:28:15] "GET /status/404 HTTP/1.1" 404 0 -FFFFFFF........ [ 52%] -127.0.0.1 - - [14/Jan/2025 04:28:17] "POST /foo HTTP/1.1" 404 207 +tests/unit/interceptors/urllib3_test.py FFFFFFFFFFFFFFFFFFFFFFFF........ [ 52%] F [ 52%] -tests/unit/interceptors/urllib_test.py FFFFFFFF127.0.0.1 - - [14/Jan/2025 04:28:20] "GET /status/404 HTTP/1.1" 404 0 -FFFFFF [ 58%] +tests/unit/interceptors/urllib_test.py FFFFFFFFFFFFFF [ 58%] tests/unit/matchers/base_test.py .... [ 60%] tests/unit/matchers/headers_test.py ...........FF............ [ 71%] tests/unit/matchers/query_test.py FF [ 71%] @@ -1130,135 +1161,9 @@ tests/unit/regex_test.py .. [100%] =================================== FAILURES =================================== -_____________________ test_examples[network_mode_httpx.py] _____________________ - -example = 'network_mode_httpx.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_httpx.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/httpx/_transports/default.py", line 72, in map_httpcore_exceptions - yield - File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 236, in handle_request - resp = self._pool.handle_request(req) - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request - raise exc from None - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request - response = connection.handle_request( - pool_request.request - ) - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 101, in handle_request - raise exc - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 78, in handle_request - stream = self._connect(request) - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 124, in _connect - stream = self._network_backend.connect_tcp(**kwargs) - File "/usr/lib/python3/dist-packages/httpcore/_backends/sync.py", line 207, in connect_tcp - with map_exceptions(exc_map): - ~~~~~~~~~~~~~~^^^^^^^^^ - File "/usr/lib/python3.13/contextlib.py", line 162, in __exit__ - self.gen.throw(value) - ~~~~~~~~~~~~~~^^^^^^^ - File "/usr/lib/python3/dist-packages/httpcore/_exceptions.py", line 14, in map_exceptions - raise to_exc(exc) from exc -httpcore.ConnectError: [Errno -3] Temporary failure in name resolution - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/network_mode_httpx.py", line 22, in - res = httpx.get("http://httpbin.org/ip") - File "/usr/lib/python3/dist-packages/httpx/_api.py", line 210, in get - return request( - "GET", - ...<11 lines>... - trust_env=trust_env, - ) - File "/usr/lib/python3/dist-packages/httpx/_api.py", line 118, in request - return client.request( - ~~~~~~~~~~~~~~^ - method=method, - ^^^^^^^^^^^^^^ - ...<8 lines>... - follow_redirects=follow_redirects, - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ) - ^ - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 837, in request - return self.send(request, auth=auth, follow_redirects=follow_redirects) - ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 926, in send - response = self._send_handling_auth( - request, - ...<2 lines>... - history=[], - ) - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 954, in _send_handling_auth - response = self._send_handling_redirects( - request, - follow_redirects=follow_redirects, - history=history, - ) - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 991, in _send_handling_redirects - response = self._send_single_request(request) - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 1027, in _send_single_request - response = transport.handle_request(request) - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/_httpx.py", line 141, in handle_request - return transport.handle_request(request) - ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 235, in handle_request - with map_httpcore_exceptions(): - ~~~~~~~~~~~~~~~~~~~~~~~^^ - File "/usr/lib/python3.13/contextlib.py", line 162, in __exit__ - self.gen.throw(value) - ~~~~~~~~~~~~~~^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions - raise mapped_exc(message) from exc -httpx.ConnectError: [Errno -3] Temporary failure in name resolution -_______________________ test_examples[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[mock_context_manager.py] ____________________ +_________________________ test_examples[decorators.py] _________________________ -example = 'mock_context_manager.py' +example = 'decorators.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -1267,23 +1172,14 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/mock_context_manager.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/decorators.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError ----------------------------- Captured stdout call ----------------------------- -#1 Status: 403 -#1 Headers: {'pepe': 'lopez', 'Content-Type': 'application/json'} -#1 Body: {'error': 'not found'} ----------------- -#2 Status: 403 -#2 Headers: {'pepe': 'lopez', 'Content-Type': 'application/json'} -#2 Body: {'error': 'not found'} ----------------- -Mock is done: True -Mock matches: 2 +#1 status: 200 +#2 status: 204 Is done: True Pending mocks: [] -Unmatched requests: [] ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 199, in _new_conn @@ -1336,7 +1232,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: @@ -1354,13 +1250,13 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) During handling of the above exception, another exception occurred: Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/mock_context_manager.py", line 37, in - res = requests.get("http://httpbin.org/ip") + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/decorators.py", line 26, in + res = requests.get("http://httpbin.org/status/400") File "/usr/lib/python3/dist-packages/requests/api.py", line 73, in get return request("get", url, params=params, **kwargs) File "/usr/lib/python3/dist-packages/requests/api.py", line 59, in request @@ -1372,10 +1268,10 @@ r = adapter.send(request, **kwargs) File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send raise ConnectionError(e, request=request) -requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) -_________________________ test_examples[decorators.py] _________________________ +requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +________________________ test_examples[network_mode.py] ________________________ -example = 'decorators.py' +example = 'network_mode.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -1384,14 +1280,11 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/decorators.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/network_mode.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError ----------------------------- Captured stdout call ----------------------------- -#1 status: 200 -#2 status: 204 -Is done: True -Pending mocks: [] +Mock status: 201 ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 199, in _new_conn @@ -1444,7 +1337,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: @@ -1455,6 +1348,24 @@ ...<9 lines>... chunked=chunked, ) + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 175, in handler + return self._on_request( + ~~~~~~~~~~~~~~~~^ + urlopen, path, conn, method, url, body=body, headers=headers, **kw + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ) + ^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request + return urlopen(pool, method, url, body=body, headers=headers, **kw) + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 175, in handler + return self._on_request( + ~~~~~~~~~~~~~~~~^ + urlopen, path, conn, method, url, body=body, headers=headers, **kw + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ) + ^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request + return urlopen(pool, method, url, body=body, headers=headers, **kw) File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 843, in urlopen retries = retries.increment( method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2] @@ -1462,13 +1373,13 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) During handling of the above exception, another exception occurred: Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/decorators.py", line 26, in - res = requests.get("http://httpbin.org/status/400") + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/network_mode.py", line 22, in + res = requests.get("http://httpbin.org/ip") File "/usr/lib/python3/dist-packages/requests/api.py", line 73, in get return request("get", url, params=params, **kwargs) File "/usr/lib/python3/dist-packages/requests/api.py", line 59, in request @@ -1480,10 +1391,10 @@ r = adapter.send(request, **kwargs) File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send raise ConnectionError(e, request=request) -requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) -_______________________ test_examples[urllib3_client.py] _______________________ +requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +_______________________ test_examples[aiohttp_client.py] _______________________ -example = 'urllib3_client.py' +example = 'aiohttp_client.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -1492,11 +1403,53 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/urllib3_client.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/aiohttp_client.py'], returncode=1).returncode + +tests/integration/examples_test.py:22: AssertionError +----------------------------- Captured stderr call ----------------------------- +/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py:30: DeprecationWarning: There is no current event loop + loop = asyncio.get_event_loop() +Traceback (most recent call last): + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py", line 31, in + loop.run_until_complete(main(loop)) + ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ + File "/usr/lib/python3.13/asyncio/base_events.py", line 720, in run_until_complete + return future.result() + ~~~~~~~~~~~~~^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py", line 28, in main + await fetch(session, "http://httpbin.org/ip", bytearray("foo bar", "utf-8")) + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/aiohttp_client.py", line 10, in fetch + with async_timeout.timeout(10): + ~~~~~~~~~~~~~~~~~~~~~^^^^ +TypeError: 'Timeout' object does not support the context manager protocol +____________________ test_examples[mock_context_manager.py] ____________________ + +example = 'mock_context_manager.py' + + @pytest.mark.parametrize("example", examples) + def test_examples(example): + result = subprocess.run([sys.executable, f"examples/{example}"], check=False) + +> assert result.returncode == 0, result.stdout +E AssertionError: None +E assert 1 == 0 +E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/mock_context_manager.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError ----------------------------- Captured stdout call ----------------------------- -#1 status: 204 +#1 Status: 403 +#1 Headers: {'pepe': 'lopez', 'Content-Type': 'application/json'} +#1 Body: {'error': 'not found'} +---------------- +#2 Status: 403 +#2 Headers: {'pepe': 'lopez', 'Content-Type': 'application/json'} +#2 Body: {'error': 'not found'} +---------------- +Mock is done: True +Mock matches: 2 +Is done: True +Pending mocks: [] +Unmatched requests: [] ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 199, in _new_conn @@ -1549,58 +1502,17 @@ ~~~~~~~~~~~~~~^^ 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: Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/urllib3_client.py", line 17, in - r = http.request("GET", "http://httpbin.org/status/404") - File "/usr/lib/python3/dist-packages/urllib3/_request_methods.py", line 135, in request - return self.request_encode_url( - ~~~~~~~~~~~~~~~~~~~~~~~^ - method, - ^^^^^^^ - ...<3 lines>... - **urlopen_kw, - ^^^^^^^^^^^^^ - ) - ^ - File "/usr/lib/python3/dist-packages/urllib3/_request_methods.py", line 182, in request_encode_url - return self.urlopen(method, url, **extra_kw) - ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/urllib3/poolmanager.py", line 443, in urlopen - response = conn.urlopen(method, u.request_uri, **kw) - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen - return self.urlopen( - ~~~~~~~~~~~~^ - method, - ^^^^^^^ - ...<13 lines>... - **response_kw, - ^^^^^^^^^^^^^^ - ) - ^ - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen - return self.urlopen( - ~~~~~~~~~~~~^ - method, - ^^^^^^^ - ...<13 lines>... - **response_kw, - ^^^^^^^^^^^^^^ - ) - ^ - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen - return self.urlopen( - ~~~~~~~~~~~~^ - method, - ^^^^^^^ - ...<13 lines>... - **response_kw, - ^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/requests/adapters.py", line 667, in send + resp = conn.urlopen( + method=request.method, + ...<9 lines>... + chunked=chunked, ) - ^ File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 843, in urlopen retries = retries.increment( method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2] @@ -1608,10 +1520,28 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/404 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) -________________________ test_examples[network_mode.py] ________________________ +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) -example = 'network_mode.py' +During handling of the above exception, another exception occurred: + +Traceback (most recent call last): + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/mock_context_manager.py", line 37, in + res = requests.get("http://httpbin.org/ip") + File "/usr/lib/python3/dist-packages/requests/api.py", line 73, in get + return request("get", url, params=params, **kwargs) + File "/usr/lib/python3/dist-packages/requests/api.py", line 59, in request + return session.request(method=method, url=url, **kwargs) + ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/requests/sessions.py", line 589, in request + resp = self.send(prep, **send_kwargs) + File "/usr/lib/python3/dist-packages/requests/sessions.py", line 703, in send + r = adapter.send(request, **kwargs) + File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send + raise ConnectionError(e, request=request) +requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +_____________________ test_examples[network_mode_httpx.py] _____________________ + +example = 'network_mode_httpx.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -1620,13 +1550,109 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/network_mode.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.13', 'examples/network_mode_httpx.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/httpx/_transports/default.py", line 72, in map_httpcore_exceptions + yield + File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 236, in handle_request + resp = self._pool.handle_request(req) + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request + raise exc from None + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request + response = connection.handle_request( + pool_request.request + ) + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 101, in handle_request + raise exc + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 78, in handle_request + stream = self._connect(request) + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 124, in _connect + stream = self._network_backend.connect_tcp(**kwargs) + File "/usr/lib/python3/dist-packages/httpcore/_backends/sync.py", line 207, in connect_tcp + with map_exceptions(exc_map): + ~~~~~~~~~~~~~~^^^^^^^^^ + File "/usr/lib/python3.13/contextlib.py", line 162, in __exit__ + self.gen.throw(value) + ~~~~~~~~~~~~~~^^^^^^^ + File "/usr/lib/python3/dist-packages/httpcore/_exceptions.py", line 14, in map_exceptions + raise to_exc(exc) from exc +httpcore.ConnectError: [Errno -3] Temporary failure in name resolution + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/network_mode_httpx.py", line 22, in + res = httpx.get("http://httpbin.org/ip") + File "/usr/lib/python3/dist-packages/httpx/_api.py", line 210, in get + return request( + "GET", + ...<11 lines>... + trust_env=trust_env, + ) + File "/usr/lib/python3/dist-packages/httpx/_api.py", line 118, in request + return client.request( + ~~~~~~~~~~~~~~^ + method=method, + ^^^^^^^^^^^^^^ + ...<8 lines>... + follow_redirects=follow_redirects, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ) + ^ + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 837, in request + return self.send(request, auth=auth, follow_redirects=follow_redirects) + ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 926, in send + response = self._send_handling_auth( + request, + ...<2 lines>... + history=[], + ) + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 954, in _send_handling_auth + response = self._send_handling_redirects( + request, + follow_redirects=follow_redirects, + history=history, + ) + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 991, in _send_handling_redirects + response = self._send_single_request(request) + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 1027, in _send_single_request + response = transport.handle_request(request) + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/pook/interceptors/_httpx.py", line 141, in handle_request + return transport.handle_request(request) + ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 235, in handle_request + with map_httpcore_exceptions(): + ~~~~~~~~~~~~~~~~~~~~~~~^^ + File "/usr/lib/python3.13/contextlib.py", line 162, in __exit__ + self.gen.throw(value) + ~~~~~~~~~~~~~~^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions + raise mapped_exc(message) from exc +httpx.ConnectError: [Errno -3] Temporary failure in name resolution +_______________________ test_examples[urllib3_client.py] _______________________ + +example = 'urllib3_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/urllib3_client.py'], returncode=1).returncode + +tests/integration/examples_test.py:22: AssertionError +----------------------------- Captured stdout call ----------------------------- +#1 status: 204 +----------------------------- 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), @@ -1677,35 +1703,58 @@ ~~~~~~~~~~~~~~^^ 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: Traceback (most recent call last): - File "/usr/lib/python3/dist-packages/requests/adapters.py", line 667, in send - resp = conn.urlopen( - method=request.method, - ...<9 lines>... - chunked=chunked, + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/urllib3_client.py", line 17, in + r = http.request("GET", "http://httpbin.org/status/404") + File "/usr/lib/python3/dist-packages/urllib3/_request_methods.py", line 135, in request + return self.request_encode_url( + ~~~~~~~~~~~~~~~~~~~~~~~^ + method, + ^^^^^^^ + ...<3 lines>... + **urlopen_kw, + ^^^^^^^^^^^^^ ) - File "/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 "/usr/lib/python3/dist-packages/urllib3/_request_methods.py", line 182, in request_encode_url + return self.urlopen(method, url, **extra_kw) + ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/urllib3/poolmanager.py", line 443, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen + return self.urlopen( + ~~~~~~~~~~~~^ + method, + ^^^^^^^ + ...<13 lines>... + **response_kw, + ^^^^^^^^^^^^^^ ) ^ - File "/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 "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen + return self.urlopen( + ~~~~~~~~~~~~^ + method, + ^^^^^^^ + ...<13 lines>... + **response_kw, + ^^^^^^^^^^^^^^ + ) + ^ + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen + return self.urlopen( + ~~~~~~~~~~~~^ + method, + ^^^^^^^ + ...<13 lines>... + **response_kw, + ^^^^^^^^^^^^^^ ) ^ - File "/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] @@ -1713,28 +1762,10 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build/examples/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)")) +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_requests_get _______________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -1782,7 +1813,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) @@ -2020,7 +2051,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -2036,13 +2067,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 @@ -2124,9 +2155,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, @@ -2220,7 +2251,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 @@ -2244,7 +2275,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -2338,12 +2369,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. @@ -2391,7 +2422,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) @@ -2629,7 +2660,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -2645,13 +2676,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 @@ -2733,9 +2764,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, @@ -2829,7 +2860,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 @@ -2853,7 +2884,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -2947,12 +2978,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. @@ -3000,7 +3031,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) @@ -3238,7 +3269,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -3254,13 +3285,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 @@ -3342,9 +3373,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, @@ -3438,7 +3469,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 @@ -3462,7 +3493,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -3556,13 +3587,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:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -3576,12 +3607,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:09] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' -url_500 = 'http://127.0.0.1:41587/status/500' +self = +url_404 = 'http://127.0.0.1:45895/status/404' +url_500 = 'http://127.0.0.1:45895/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -3601,12 +3632,12 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:33] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Jan/2025 04:27:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:09] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [15/Jan/2025 06:43:09] "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( @@ -3677,8 +3708,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:41587/status/401' +self = +url_401 = 'http://127.0.0.1:45895/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -3714,8 +3745,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( @@ -3753,11 +3784,11 @@ /usr/lib/python3/dist-packages/aiohttp/connector.py:1323: ClientConnectorDNSError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:33] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:09] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardAiohttp.test_multiple_network_filters _______________ -self = -url_401 = 'http://127.0.0.1:41587/status/401' +self = +url_401 = 'http://127.0.0.1:45895/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -3793,13 +3824,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:37] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:27:37] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:27:37] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:10] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:10] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:10] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardAiohttp.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -3816,11 +3847,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:37] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:10] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -3835,11 +3866,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:37] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:10] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAiohttp.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -3856,10 +3887,12 @@ E AssertionError tests/unit/interceptors/base.py:193: AssertionError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [15/Jan/2025 06:43:10] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardAiohttp.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -3876,11 +3909,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:37] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:10] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAiohttp.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -3894,11 +3927,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:37] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:10] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardAiohttp.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -3913,11 +3946,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:37] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:10] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAiohttp.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -3933,11 +3966,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:37] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:10] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAiohttp.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -3949,11 +3982,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:38] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:10] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -3967,12 +4000,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:43] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:11] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_network_mode ___________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' -url_500 = 'http://127.0.0.1:41587/status/500' +self = +url_404 = 'http://127.0.0.1:45895/status/404' +url_500 = 'http://127.0.0.1:45895/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -3992,8 +4025,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:44] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Jan/2025 04:27:45] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:11] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [15/Jan/2025 06:43:11] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAsyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -4039,8 +4072,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:41587/status/401' +self = +url_401 = 'http://127.0.0.1:45895/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -4109,11 +4142,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:45] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:12] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardAsyncHttpx.test_multiple_network_filters _____________ -self = -url_401 = 'http://127.0.0.1:41587/status/401' +self = +url_401 = 'http://127.0.0.1:45895/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -4149,13 +4182,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:49] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:27:50] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:27:50] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:12] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:13] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:13] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardAsyncHttpx.test_json_request ___________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -4172,11 +4205,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:13] "GET /status/404 HTTP/1.1" 404 0 __________________ TestStandardAsyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -4191,11 +4224,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:13] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAsyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -4213,11 +4246,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:52] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:14] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -4234,11 +4267,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:53] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:14] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAsyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -4252,11 +4285,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:54] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:14] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -4271,11 +4304,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:54] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:14] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_mutli_value_response_headers ___________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -4291,11 +4324,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:55] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:14] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -4307,11 +4340,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:55] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:14] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -4325,12 +4358,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:56] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:15] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' -url_500 = 'http://127.0.0.1:41587/status/500' +self = +url_404 = 'http://127.0.0.1:45895/status/404' +url_500 = 'http://127.0.0.1:45895/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -4350,8 +4383,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:56] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Jan/2025 04:27:57] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:15] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [15/Jan/2025 06:43:16] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardSyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -4395,8 +4428,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:41587/status/401' +self = +url_401 = 'http://127.0.0.1:45895/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -4463,11 +4496,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:27:57] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:16] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardSyncHttpx.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:41587/status/401' +self = +url_401 = 'http://127.0.0.1:45895/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -4503,13 +4536,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:00] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:28:00] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:28:01] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:17] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:17] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:17] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardSyncHttpx.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -4526,11 +4559,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:02] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:17] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -4545,11 +4578,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:02] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:17] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardSyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -4567,11 +4600,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:03] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:18] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardSyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -4588,11 +4621,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:04] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:18] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardSyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -4606,11 +4639,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:04] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:18] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -4625,11 +4658,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:05] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:18] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardSyncHttpx.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -4645,11 +4678,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:05] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:18] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardSyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -4661,10 +4694,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:06] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:18] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_sync ___________________________________ -URL = 'http://127.0.0.1:41587/status/404' +URL = 'http://127.0.0.1:45895/status/404' def test_sync(URL): pook.get(URL).times(1).reply(200).body("123") @@ -4677,10 +4710,10 @@ tests/unit/interceptors/httpx_test.py:43: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:06] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:18] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_json ___________________________________ -URL = 'http://127.0.0.1:41587/status/404' +URL = 'http://127.0.0.1:45895/status/404' def test_json(URL): ( @@ -4699,10 +4732,10 @@ tests/unit/interceptors/httpx_test.py:67: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:07] "POST /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:19] "POST /status/404 HTTP/1.1" 404 0 __________________________ test_streaming[iter_bytes] __________________________ -URL = 'http://127.0.0.1:41587/status/404', response_method = 'iter_bytes' +URL = 'http://127.0.0.1:45895/status/404', response_method = 'iter_bytes' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -4719,10 +4752,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:19] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_streaming[iter_raw] ___________________________ -URL = 'http://127.0.0.1:41587/status/404', response_method = 'iter_raw' +URL = 'http://127.0.0.1:45895/status/404', response_method = 'iter_raw' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -4739,10 +4772,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:08] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:19] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_redirect_following ____________________________ -URL = 'http://127.0.0.1:41587/status/404' +URL = 'http://127.0.0.1:45895/status/404' def test_redirect_following(URL): urls = [URL, f"{URL}/redirected", f"{URL}/redirected_again"] @@ -4760,11 +4793,11 @@ tests/unit/interceptors/httpx_test.py:93: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:19] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -4778,12 +4811,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:19] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' -url_500 = 'http://127.0.0.1:41587/status/500' +self = +url_404 = 'http://127.0.0.1:45895/status/404' +url_500 = 'http://127.0.0.1:45895/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -4803,11 +4836,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:09] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Jan/2025 04:28:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:19] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [15/Jan/2025 06:43:19] "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. @@ -4855,7 +4888,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> @@ -5091,7 +5124,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -5107,14 +5140,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:41587/status/401' +self = +url_401 = 'http://127.0.0.1:45895/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -5156,9 +5189,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, @@ -5252,19 +5285,19 @@ if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] -E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:09] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:19] "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:41587/status/401' +self = +url_401 = 'http://127.0.0.1:45895/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -5300,13 +5333,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:11] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:28:12] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:28:12] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:21] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:21] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:21] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardUrllib3.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -5323,11 +5356,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:21] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -5342,11 +5375,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:21] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardUrllib3.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -5364,11 +5397,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:21] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardUrllib3.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -5385,11 +5418,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:21] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardUrllib3.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -5403,11 +5436,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:21] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -5422,11 +5455,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:21] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardUrllib3.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -5441,10 +5474,12 @@ E AssertionError tests/unit/interceptors/base.py:239: AssertionError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [15/Jan/2025 06:43:21] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardUrllib3.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -5456,11 +5491,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:12] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:21] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -5474,12 +5509,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:21] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' -url_500 = 'http://127.0.0.1:41587/status/500' +self = +url_404 = 'http://127.0.0.1:45895/status/404' +url_500 = 'http://127.0.0.1:45895/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -5499,11 +5534,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:13] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Jan/2025 04:28:13] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:21] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [15/Jan/2025 06:43:21] "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. @@ -5551,7 +5586,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) @@ -5789,7 +5824,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -5805,13 +5840,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 @@ -5893,9 +5928,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, @@ -5989,14 +6024,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:41587/status/401' +self = +url_401 = 'http://127.0.0.1:45895/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -6028,7 +6063,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -6122,15 +6157,15 @@ raise SSLError(e, request=request) > raise ConnectionError(e, request=request) -E requests.exceptions.ConnectionError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) +E requests.exceptions.ConnectionError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/requests/adapters.py:700: ConnectionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:13] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:21] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardRequests.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:41587/status/401' +self = +url_401 = 'http://127.0.0.1:45895/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -6166,13 +6201,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:15] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:28:15] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:28:15] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:23] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:23] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:23] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardRequests.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -6189,11 +6224,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:15] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:23] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardRequests.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -6207,10 +6242,12 @@ E AssertionError tests/unit/interceptors/base.py:178: AssertionError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [15/Jan/2025 06:43:23] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardRequests.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -6228,11 +6265,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:15] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:23] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -6249,11 +6286,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:16] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:23] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardRequests.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -6267,11 +6304,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:16] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:23] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -6286,11 +6323,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:16] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:23] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -6306,11 +6343,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:16] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:23] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -6322,10 +6359,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:16] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:23] "GET /status/404 HTTP/1.1" 404 0 ____________________________ test_post_with_headers ____________________________ -URL = 'http://127.0.0.1:41587/foo' +URL = 'http://127.0.0.1:45895/foo' @pytest.mark.pook def test_post_with_headers(URL): @@ -6334,13 +6371,15 @@ resp = http.request("POST", URL) > assert resp.status == 200 E assert 404 == 200 -E + where 404 = .status +E + where 404 = .status tests/unit/interceptors/urllib3_test.py:112: AssertionError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [15/Jan/2025 06:43:24] "POST /foo HTTP/1.1" 404 207 _____________________ TestUrllib.test_activate_deactivate ______________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -6354,12 +6393,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:17] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:24] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_network_mode _________________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' -url_500 = 'http://127.0.0.1:41587/status/500' +self = +url_404 = 'http://127.0.0.1:45895/status/404' +url_500 = 'http://127.0.0.1:45895/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -6379,14 +6418,14 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:17] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Jan/2025 04:28:17] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:24] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [15/Jan/2025 06:43:24] "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): @@ -6478,8 +6517,8 @@ During handling of the above exception, another exception occurred: -self = -url_401 = 'http://127.0.0.1:41587/status/401' +self = +url_401 = 'http://127.0.0.1:45895/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -6515,10 +6554,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): @@ -6570,11 +6609,11 @@ /usr/lib/python3.13/urllib/request.py:1322: URLError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:17] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:25] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestUrllib.test_multiple_network_filters ___________________ -self = -url_401 = 'http://127.0.0.1:41587/status/401' +self = +url_401 = 'http://127.0.0.1:45895/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -6610,13 +6649,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:20] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:28:20] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:28:20] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:27] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:27] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:43:27] "GET /status/401 HTTP/1.1" 401 0 _________________________ TestUrllib.test_json_request _________________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -6633,11 +6672,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:20] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:28] "GET /status/404 HTTP/1.1" 404 0 ________________________ TestUrllib.test_json_response _________________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -6652,11 +6691,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:20] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:28] "GET /status/404 HTTP/1.1" 404 0 __________________ TestUrllib.test_json_request_and_response ___________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -6674,11 +6713,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:20] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:28] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_header_sent __________________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -6693,11 +6732,11 @@ tests/unit/interceptors/base.py:205: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:20] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:28] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestUrllib.test_mocked_response_headers ____________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -6708,10 +6747,12 @@ E ValueError: not enough values to unpack (expected 3, got 2) tests/unit/interceptors/base.py:215: ValueError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [15/Jan/2025 06:43:28] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestUrllib.test_mutli_value_headers ______________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -6726,11 +6767,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:21] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:28] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_mutli_value_response_headers _________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -6744,11 +6785,11 @@ tests/unit/interceptors/base.py:237: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:21] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:28] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_unmatched_headers_none_sent __________________ -self = -url_404 = 'http://127.0.0.1:41587/status/404' +self = +url_404 = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -6760,14 +6801,14 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:21] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:28] "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): @@ -6834,7 +6875,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, @@ -6890,11 +6931,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): @@ -6947,10 +6988,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): @@ -7061,10 +7102,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): @@ -7305,7 +7346,7 @@ tests/unit/matchers/headers_test.py:171: AssertionError ______________________ test_param_exists_empty_disallowed ______________________ -URL = 'http://127.0.0.1:41587/status/404' +URL = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_param_exists_empty_disallowed(URL): @@ -7328,10 +7369,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) @@ -7339,10 +7380,10 @@ /usr/lib/python3.13/urllib/request.py:613: HTTPError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:28] "GET /status/404?x HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:31] "GET /status/404?x HTTP/1.1" 404 0 _______________________ test_param_exists_empty_allowed ________________________ -URL = 'http://127.0.0.1:41587/status/404' +URL = 'http://127.0.0.1:45895/status/404' @pytest.mark.pook def test_param_exists_empty_allowed(URL): @@ -7364,10 +7405,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) @@ -7375,7 +7416,7 @@ /usr/lib/python3.13/urllib/request.py:613: HTTPError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:28:30] "GET /status/404?x HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:43:32] "GET /status/404?x HTTP/1.1" 404 0 ________________________ test_mock_constructor[params] _________________________ param_kwargs = {'params': {'x': '1'}}, query_string = '?x=1' @@ -7444,7 +7485,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): @@ -7534,7 +7575,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): @@ -7701,12 +7742,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_httpx.py] +FAILED tests/integration/examples_test.py::test_examples[decorators.py] - Ass... +FAILED tests/integration/examples_test.py::test_examples[network_mode.py] - A... FAILED tests/integration/examples_test.py::test_examples[aiohttp_client.py] FAILED tests/integration/examples_test.py::test_examples[mock_context_manager.py] -FAILED tests/integration/examples_test.py::test_examples[decorators.py] - Ass... +FAILED tests/integration/examples_test.py::test_examples[network_mode_httpx.py] FAILED tests/integration/examples_test.py::test_examples[urllib3_client.py] -FAILED tests/integration/examples_test.py::test_examples[network_mode.py] - A... FAILED tests/integration/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 @@ -7796,7 +7837,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 390.26s (0:06:30) = += 95 failed, 124 passed, 10 skipped, 3 xfailed, 42 warnings in 80.51s (0:01:20) = E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.13_pook/build; python3.13 -m pytest tests I: pybuild pybuild:308: cp -r /build/reproducible-path/python-pook-2.1.3/examples /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build ; rm -f /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/mocket_example.py I: pybuild base:311: cd /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build; python3.12 -m pytest tests @@ -7804,23 +7845,20 @@ platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 rootdir: /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build configfile: pyproject.toml -plugins: pook-2.1.3, typeguard-4.4.1, anyio-4.7.0, cov-5.0.0, httpbin-2.1.0 +plugins: pook-2.1.3, httpbin-2.1.0, anyio-4.7.0, cov-5.0.0, typeguard-4.4.1 collected 232 items tests/integration/engines_test.py .. [ 0%] -tests/integration/examples_test.py F.F..F..F...F.....F.... [ 10%] +tests/integration/examples_test.py .....F....F...F....F.FF [ 10%] tests/integration/pook_requests_test.py FFF [ 12%] tests/unit/api_test.py ......s [ 15%] tests/unit/engine_test.py .. [ 15%] tests/unit/exceptions_test.py . [ 16%] -tests/unit/interceptors/aiohttp_test.py FFFFFFFFFFF127.0.0.1 - - [14/Jan/2025 04:34:07] "GET /status/404 HTTP/1.1" 404 0 -Fssssssss [ 25%] +tests/unit/interceptors/aiohttp_test.py FFFFFFFFFFFFssssssss [ 25%] tests/unit/interceptors/httpx_test.py FFFFFFFFFFFFFFFFFFFFFFFFFsFFFF [ 37%] tests/unit/interceptors/module_test.py . [ 38%] -tests/unit/interceptors/urllib3_test.py FFFFFFFFF127.0.0.1 - - [14/Jan/2025 04:34:42] "GET /status/404 HTTP/1.1" 404 0 -FFFF127.0.0.1 - - [14/Jan/2025 04:34:43] "GET /status/404 HTTP/1.1" 404 0 -FFFFFFFFF127.0.0.1 - - [14/Jan/2025 04:34:51] "GET /status/404 HTTP/1.1" 404 0 -FF........ [ 52%] +tests/unit/interceptors/urllib3_test.py F127.0.0.1 - - [15/Jan/2025 06:45:33] "GET /status/404 HTTP/1.1" 404 0 +FFFFFFFFFFFFFFFFFFFFFFF........ [ 52%] F [ 52%] tests/unit/interceptors/urllib_test.py FFFFFFFFFFFFFF [ 58%] tests/unit/matchers/base_test.py .... [ 60%] @@ -7832,121 +7870,9 @@ tests/unit/regex_test.py .. [100%] =================================== FAILURES =================================== -_____________________ test_examples[network_mode_httpx.py] _____________________ - -example = 'network_mode_httpx.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_httpx.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/httpx/_transports/default.py", line 72, in map_httpcore_exceptions - yield - File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 236, in handle_request - resp = self._pool.handle_request(req) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request - raise exc from None - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request - response = connection.handle_request( - ^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 101, in handle_request - raise exc - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 78, in handle_request - stream = self._connect(request) - ^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 124, in _connect - stream = self._network_backend.connect_tcp(**kwargs) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpcore/_backends/sync.py", line 207, in connect_tcp - with map_exceptions(exc_map): - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3.12/contextlib.py", line 158, in __exit__ - self.gen.throw(value) - File "/usr/lib/python3/dist-packages/httpcore/_exceptions.py", line 14, in map_exceptions - raise to_exc(exc) from exc -httpcore.ConnectError: [Errno -3] Temporary failure in name resolution - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/network_mode_httpx.py", line 22, in - res = httpx.get("http://httpbin.org/ip") - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_api.py", line 210, in get - return request( - ^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_api.py", line 118, in request - return client.request( - ^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 837, in request - return self.send(request, auth=auth, follow_redirects=follow_redirects) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 926, in send - response = self._send_handling_auth( - ^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 954, in _send_handling_auth - response = self._send_handling_redirects( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 991, in _send_handling_redirects - response = self._send_single_request(request) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_client.py", line 1027, in _send_single_request - response = transport.handle_request(request) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/_httpx.py", line 141, in handle_request - return transport.handle_request(request) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 235, in handle_request - with map_httpcore_exceptions(): - ^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3.12/contextlib.py", line 158, in __exit__ - self.gen.throw(value) - File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions - raise mapped_exc(message) from exc -httpx.ConnectError: [Errno -3] Temporary failure in name resolution -_______________________ test_examples[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[mock_context_manager.py] ____________________ +_________________________ test_examples[decorators.py] _________________________ -example = 'mock_context_manager.py' +example = 'decorators.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -7955,23 +7881,14 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/mock_context_manager.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/decorators.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError ----------------------------- Captured stdout call ----------------------------- -#1 Status: 403 -#1 Headers: {'pepe': 'lopez', 'Content-Type': 'application/json'} -#1 Body: {'error': 'not found'} ----------------- -#2 Status: 403 -#2 Headers: {'pepe': 'lopez', 'Content-Type': 'application/json'} -#2 Body: {'error': 'not found'} ----------------- -Mock is done: True -Mock matches: 2 +#1 status: 200 +#2 status: 204 Is done: True Pending mocks: [] -Unmatched requests: [] ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 199, in _new_conn @@ -8006,7 +7923,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: @@ -8020,14 +7937,14 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) During handling of the above exception, another exception occurred: Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/mock_context_manager.py", line 37, in - res = requests.get("http://httpbin.org/ip") - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/decorators.py", line 26, in + res = requests.get("http://httpbin.org/status/400") + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/requests/api.py", line 73, in get return request("get", url, params=params, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -8042,10 +7959,10 @@ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send raise ConnectionError(e, request=request) -requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) -_________________________ test_examples[decorators.py] _________________________ +requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +________________________ test_examples[network_mode.py] ________________________ -example = 'decorators.py' +example = 'network_mode.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -8054,14 +7971,11 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/decorators.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/network_mode.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError ----------------------------- Captured stdout call ----------------------------- -#1 status: 200 -#2 status: 204 -Is done: True -Pending mocks: [] +Mock status: 201 ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 199, in _new_conn @@ -8096,7 +8010,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: @@ -8104,20 +8018,32 @@ File "/usr/lib/python3/dist-packages/requests/adapters.py", line 667, in send resp = conn.urlopen( ^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 175, in handler + return self._on_request( + ^^^^^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request + return urlopen(pool, method, url, body=body, headers=headers, **kw) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 175, in handler + return self._on_request( + ^^^^^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/urllib3.py", line 137, in _on_request + return urlopen(pool, method, url, body=body, headers=headers, **kw) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 843, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) During handling of the above exception, another exception occurred: Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/decorators.py", line 26, in - res = requests.get("http://httpbin.org/status/400") - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/network_mode.py", line 22, in + res = requests.get("http://httpbin.org/ip") + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/requests/api.py", line 73, in get return request("get", url, params=params, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -8132,10 +8058,10 @@ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/requests/adapters.py", line 700, in send raise ConnectionError(e, request=request) -requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/400 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) -_______________________ test_examples[urllib3_client.py] _______________________ +requests.exceptions.ConnectionError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) +_______________________ test_examples[aiohttp_client.py] _______________________ -example = 'urllib3_client.py' +example = 'aiohttp_client.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -8144,11 +8070,52 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/urllib3_client.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/aiohttp_client.py'], returncode=1).returncode + +tests/integration/examples_test.py:22: AssertionError +----------------------------- Captured stderr call ----------------------------- +/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py:30: DeprecationWarning: There is no current event loop + loop = asyncio.get_event_loop() +Traceback (most recent call last): + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py", line 31, in + loop.run_until_complete(main(loop)) + File "/usr/lib/python3.12/asyncio/base_events.py", line 686, in run_until_complete + return future.result() + ^^^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py", line 28, in main + await fetch(session, "http://httpbin.org/ip", bytearray("foo bar", "utf-8")) + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/aiohttp_client.py", line 10, in fetch + with async_timeout.timeout(10): + ^^^^^^^^^^^^^^^^^^^^^^^^^ +TypeError: 'Timeout' object does not support the context manager protocol +____________________ test_examples[mock_context_manager.py] ____________________ + +example = 'mock_context_manager.py' + + @pytest.mark.parametrize("example", examples) + def test_examples(example): + result = subprocess.run([sys.executable, f"examples/{example}"], check=False) + +> assert result.returncode == 0, result.stdout +E AssertionError: None +E assert 1 == 0 +E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/mock_context_manager.py'], returncode=1).returncode tests/integration/examples_test.py:22: AssertionError ----------------------------- Captured stdout call ----------------------------- -#1 status: 204 +#1 Status: 403 +#1 Headers: {'pepe': 'lopez', 'Content-Type': 'application/json'} +#1 Body: {'error': 'not found'} +---------------- +#2 Status: 403 +#2 Headers: {'pepe': 'lopez', 'Content-Type': 'application/json'} +#2 Body: {'error': 'not found'} +---------------- +Mock is done: True +Mock matches: 2 +Is done: True +Pending mocks: [] +Unmatched requests: [] ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 199, in _new_conn @@ -8183,31 +8150,13 @@ ^^^^^^^^^^^^^^^^ 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: Traceback (most recent call last): - File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/urllib3_client.py", line 17, in - r = http.request("GET", "http://httpbin.org/status/404") - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/urllib3/_request_methods.py", line 135, in request - return self.request_encode_url( - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/urllib3/_request_methods.py", line 182, in request_encode_url - return self.urlopen(method, url, **extra_kw) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/urllib3/poolmanager.py", line 443, in urlopen - response = conn.urlopen(method, u.request_uri, **kw) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen - return self.urlopen( - ^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen - return self.urlopen( - ^^^^^^^^^^^^^ - File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen - return self.urlopen( + File "/usr/lib/python3/dist-packages/requests/adapters.py", line 667, in send + resp = conn.urlopen( ^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 843, in urlopen retries = retries.increment( @@ -8215,10 +8164,32 @@ File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /status/404 (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) -________________________ test_examples[network_mode.py] ________________________ +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NameResolutionError(": Failed to resolve 'httpbin.org' ([Errno -3] Temporary failure in name resolution)")) -example = 'network_mode.py' +During handling of the above exception, another exception occurred: + +Traceback (most recent call last): + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/mock_context_manager.py", line 37, in + res = requests.get("http://httpbin.org/ip") + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/requests/api.py", line 73, in get + 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[network_mode_httpx.py] _____________________ + +example = 'network_mode_httpx.py' @pytest.mark.parametrize("example", examples) def test_examples(example): @@ -8227,13 +8198,96 @@ > assert result.returncode == 0, result.stdout E AssertionError: None E assert 1 == 0 -E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/network_mode.py'], returncode=1).returncode +E + where 1 = CompletedProcess(args=['/usr/bin/python3.12', 'examples/network_mode_httpx.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/httpx/_transports/default.py", line 72, in map_httpcore_exceptions + yield + File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 236, in handle_request + resp = self._pool.handle_request(req) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request + raise exc from None + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request + response = connection.handle_request( + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 101, in handle_request + raise exc + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 78, in handle_request + stream = self._connect(request) + ^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpcore/_sync/connection.py", line 124, in _connect + stream = self._network_backend.connect_tcp(**kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpcore/_backends/sync.py", line 207, in connect_tcp + with map_exceptions(exc_map): + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.12/contextlib.py", line 158, in __exit__ + self.gen.throw(value) + File "/usr/lib/python3/dist-packages/httpcore/_exceptions.py", line 14, in map_exceptions + raise to_exc(exc) from exc +httpcore.ConnectError: [Errno -3] Temporary failure in name resolution + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/examples/network_mode_httpx.py", line 22, in + res = httpx.get("http://httpbin.org/ip") + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_api.py", line 210, in get + return request( + ^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_api.py", line 118, in request + return client.request( + ^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 837, in request + return self.send(request, auth=auth, follow_redirects=follow_redirects) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 926, in send + response = self._send_handling_auth( + ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 954, in _send_handling_auth + response = self._send_handling_redirects( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 991, in _send_handling_redirects + response = self._send_single_request(request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_client.py", line 1027, in _send_single_request + response = transport.handle_request(request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build/pook/interceptors/_httpx.py", line 141, in handle_request + return transport.handle_request(request) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 235, in handle_request + with map_httpcore_exceptions(): + ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.12/contextlib.py", line 158, in __exit__ + self.gen.throw(value) + File "/usr/lib/python3/dist-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions + raise mapped_exc(message) from exc +httpx.ConnectError: [Errno -3] Temporary failure in name resolution +_______________________ test_examples[urllib3_client.py] _______________________ + +example = 'urllib3_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/urllib3_client.py'], returncode=1).returncode + +tests/integration/examples_test.py:22: AssertionError +----------------------------- Captured stdout call ----------------------------- +#1 status: 204 +----------------------------- 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( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -8266,58 +8320,42 @@ ^^^^^^^^^^^^^^^^ 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: 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/examples/urllib3_client.py", line 17, in + r = http.request("GET", "http://httpbin.org/status/404") + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/urllib3/_request_methods.py", line 135, in request + return self.request_encode_url( + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/urllib3/_request_methods.py", line 182, in request_encode_url + return self.urlopen(method, url, **extra_kw) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/urllib3/poolmanager.py", line 443, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen + return self.urlopen( + ^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen + return self.urlopen( + ^^^^^^^^^^^^^ + File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 873, in urlopen + return self.urlopen( ^^^^^^^^^^^^^ - File "/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)")) +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_requests_get _______________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -8365,7 +8403,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) @@ -8603,7 +8641,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -8619,13 +8657,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 @@ -8707,9 +8745,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, @@ -8803,7 +8841,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 @@ -8827,7 +8865,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -8921,12 +8959,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. @@ -8974,7 +9012,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) @@ -9212,7 +9250,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -9228,13 +9266,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 @@ -9316,9 +9354,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, @@ -9412,7 +9450,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 @@ -9436,7 +9474,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -9530,12 +9568,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. @@ -9583,7 +9621,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) @@ -9821,7 +9859,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -9837,13 +9875,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 @@ -9925,9 +9963,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, @@ -10021,7 +10059,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 @@ -10045,7 +10083,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -10139,13 +10177,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:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -10159,12 +10197,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:02] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:20] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' -url_500 = 'http://127.0.0.1:35685/status/500' +self = +url_404 = 'http://127.0.0.1:46875/status/404' +url_500 = 'http://127.0.0.1:46875/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -10184,12 +10222,12 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:02] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Jan/2025 04:34:02] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:20] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [15/Jan/2025 06:45:20] "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( @@ -10260,8 +10298,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:35685/status/401' +self = +url_401 = 'http://127.0.0.1:46875/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -10297,8 +10335,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( @@ -10336,11 +10374,11 @@ /usr/lib/python3/dist-packages/aiohttp/connector.py:1323: ClientConnectorDNSError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:02] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:20] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardAiohttp.test_multiple_network_filters _______________ -self = -url_401 = 'http://127.0.0.1:35685/status/401' +self = +url_401 = 'http://127.0.0.1:46875/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -10376,13 +10414,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:06] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:34:06] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:34:06] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:22] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:22] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:22] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardAiohttp.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -10399,11 +10437,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:06] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:22] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardAiohttp.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -10418,11 +10456,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:06] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:22] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAiohttp.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -10440,11 +10478,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:22] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardAiohttp.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -10461,11 +10499,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:22] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAiohttp.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -10479,11 +10517,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:22] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardAiohttp.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -10498,11 +10536,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:22] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAiohttp.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -10518,11 +10556,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:07] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:22] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAiohttp.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -10533,10 +10571,12 @@ E Failed: DID NOT RAISE tests/unit/interceptors/base.py:247: Failed +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [15/Jan/2025 06:45:22] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -10550,12 +10590,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:09] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:22] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_network_mode ___________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' -url_500 = 'http://127.0.0.1:35685/status/500' +self = +url_404 = 'http://127.0.0.1:46875/status/404' +url_500 = 'http://127.0.0.1:46875/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -10575,8 +10615,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:10] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Jan/2025 04:34:10] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:23] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [15/Jan/2025 06:45:23] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardAsyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -10622,8 +10662,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:35685/status/401' +self = +url_401 = 'http://127.0.0.1:46875/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -10692,11 +10732,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:11] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:23] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardAsyncHttpx.test_multiple_network_filters _____________ -self = -url_401 = 'http://127.0.0.1:35685/status/401' +self = +url_401 = 'http://127.0.0.1:46875/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -10732,13 +10772,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:15] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:34:16] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:34:16] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:25] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:25] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:25] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardAsyncHttpx.test_json_request ___________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -10755,11 +10795,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:17] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:26] "GET /status/404 HTTP/1.1" 404 0 __________________ TestStandardAsyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -10774,11 +10814,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:18] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:26] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardAsyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -10796,11 +10836,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:18] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:26] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardAsyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -10817,11 +10857,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:19] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:26] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardAsyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -10835,11 +10875,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:20] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:27] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardAsyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -10854,11 +10894,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:21] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:27] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_mutli_value_response_headers ___________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -10874,11 +10914,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:22] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:27] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardAsyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -10890,11 +10930,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:22] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:27] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_activate_deactivate ________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -10908,12 +10948,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:23] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:27] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' -url_500 = 'http://127.0.0.1:35685/status/500' +self = +url_404 = 'http://127.0.0.1:46875/status/404' +url_500 = 'http://127.0.0.1:46875/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -10933,8 +10973,8 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:24] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Jan/2025 04:34:24] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:27] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [15/Jan/2025 06:45:28] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardSyncHttpx.test_network_mode_hostname _______________ @contextlib.contextmanager @@ -10978,8 +11018,8 @@ The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:35685/status/401' +self = +url_401 = 'http://127.0.0.1:46875/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -11046,11 +11086,11 @@ /usr/lib/python3/dist-packages/httpx/_transports/default.py:89: ConnectError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:25] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:28] "GET /status/401 HTTP/1.1" 401 0 _____________ TestStandardSyncHttpx.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:35685/status/401' +self = +url_401 = 'http://127.0.0.1:46875/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -11086,13 +11126,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:28] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:34:29] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:34:29] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:29] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:29] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:30] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestStandardSyncHttpx.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -11109,11 +11149,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:31] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:30] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardSyncHttpx.test_json_response ___________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -11128,11 +11168,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:30] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardSyncHttpx.test_json_request_and_response _____________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -11150,11 +11190,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:32] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:31] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardSyncHttpx.test_header_sent ____________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -11171,11 +11211,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:33] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:31] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardSyncHttpx.test_mocked_response_headers ______________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -11189,11 +11229,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:31] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardSyncHttpx.test_mutli_value_headers ________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -11208,11 +11248,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:34] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:31] "GET /status/404 HTTP/1.1" 404 0 ___________ TestStandardSyncHttpx.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -11228,11 +11268,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:35] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:32] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardSyncHttpx.test_unmatched_headers_none_sent ____________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -11244,10 +11284,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:36] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:32] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_sync ___________________________________ -URL = 'http://127.0.0.1:35685/status/404' +URL = 'http://127.0.0.1:46875/status/404' def test_sync(URL): pook.get(URL).times(1).reply(200).body("123") @@ -11260,10 +11300,10 @@ tests/unit/interceptors/httpx_test.py:43: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:36] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:32] "GET /status/404 HTTP/1.1" 404 0 __________________________________ test_json ___________________________________ -URL = 'http://127.0.0.1:35685/status/404' +URL = 'http://127.0.0.1:46875/status/404' def test_json(URL): ( @@ -11282,10 +11322,10 @@ tests/unit/interceptors/httpx_test.py:67: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:37] "POST /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:33] "POST /status/404 HTTP/1.1" 404 0 __________________________ test_streaming[iter_bytes] __________________________ -URL = 'http://127.0.0.1:35685/status/404', response_method = 'iter_bytes' +URL = 'http://127.0.0.1:46875/status/404', response_method = 'iter_bytes' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -11302,10 +11342,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:38] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:33] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_streaming[iter_raw] ___________________________ -URL = 'http://127.0.0.1:35685/status/404', response_method = 'iter_raw' +URL = 'http://127.0.0.1:46875/status/404', response_method = 'iter_raw' @pytest.mark.parametrize("response_method", ("iter_bytes", "iter_raw")) def test_streaming(URL, response_method): @@ -11322,10 +11362,10 @@ tests/unit/interceptors/httpx_test.py:79: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:38] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:33] "GET /status/404 HTTP/1.1" 404 0 ___________________________ test_redirect_following ____________________________ -URL = 'http://127.0.0.1:35685/status/404' +URL = 'http://127.0.0.1:46875/status/404' def test_redirect_following(URL): urls = [URL, f"{URL}/redirected", f"{URL}/redirected_again"] @@ -11343,11 +11383,11 @@ tests/unit/interceptors/httpx_test.py:93: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:39] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:33] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -11361,12 +11401,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:39] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:33] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_network_mode _____________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' -url_500 = 'http://127.0.0.1:35685/status/500' +self = +url_404 = 'http://127.0.0.1:46875/status/404' +url_500 = 'http://127.0.0.1:46875/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -11386,11 +11426,10 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:39] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Jan/2025 04:34:39] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:33] "POST /status/500 HTTP/1.1" 500 0 ________________ TestStandardUrllib3.test_network_mode_hostname ________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -11438,7 +11477,7 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET', url = '/', body = None, headers = {} retries = Retry(total=0, connect=None, read=None, redirect=None, status=None) redirect = False, assert_same_host = False, timeout = <_TYPE_DEFAULT.token: -1> @@ -11674,7 +11713,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -11690,14 +11729,14 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = -url_401 = 'http://127.0.0.1:35685/status/401' +self = +url_401 = 'http://127.0.0.1:46875/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -11739,9 +11778,9 @@ self = Retry(total=0, connect=None, read=None, redirect=None, status=None) method = 'GET', url = '/', response = None -error = NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)") -_pool = -_stacktrace = +error = NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)") +_pool = +_stacktrace = def increment( self, @@ -11835,19 +11874,19 @@ if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] -E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:39] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:33] "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:35685/status/401' +self = +url_401 = 'http://127.0.0.1:46875/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -11883,13 +11922,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:42] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:34:42] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:34:42] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:34] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:34] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:34] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardUrllib3.test_json_request _____________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -11906,11 +11945,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:42] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:34] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardUrllib3.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -11925,11 +11964,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:42] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:34] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardUrllib3.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -11947,11 +11986,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:42] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:34] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestStandardUrllib3.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -11968,11 +12007,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:42] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:34] "GET /status/404 HTTP/1.1" 404 0 _______________ TestStandardUrllib3.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -11986,11 +12025,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:42] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:34] "GET /status/404 HTTP/1.1" 404 0 _________________ TestStandardUrllib3.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -12004,10 +12043,12 @@ E AssertionError tests/unit/interceptors/base.py:228: AssertionError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [15/Jan/2025 06:45:34] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardUrllib3.test_mutli_value_response_headers _____________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -12023,11 +12064,11 @@ tests/unit/interceptors/base.py:239: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:43] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:34] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardUrllib3.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -12039,11 +12080,11 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:43] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:34] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_activate_deactivate _________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -12057,12 +12098,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:43] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:34] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_network_mode ____________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' -url_500 = 'http://127.0.0.1:35685/status/500' +self = +url_404 = 'http://127.0.0.1:46875/status/404' +url_500 = 'http://127.0.0.1:46875/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -12082,10 +12123,11 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:43] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [15/Jan/2025 06:45:35] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [15/Jan/2025 06:45:35] "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. @@ -12133,7 +12175,7 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET', url = '/', body = None headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -12371,7 +12413,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -12387,13 +12429,13 @@ ) except socket.gaierror as e: > raise NameResolutionError(self.host, self, e) from e -E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) +E urllib3.exceptions.NameResolutionError: : Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution) /usr/lib/python3/dist-packages/urllib3/connection.py:206: NameResolutionError The above exception was the direct cause of the following exception: -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -12475,9 +12517,9 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET', url = '/', response = None -error = NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)") -_pool = -_stacktrace = +error = NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)") +_pool = +_stacktrace = def increment( self, @@ -12571,14 +12613,14 @@ if new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] -E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url_401 = 'http://127.0.0.1:35685/status/401' +self = +url_401 = 'http://127.0.0.1:46875/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -12610,7 +12652,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = False timeout = Timeout(connect=None, read=None, total=None), verify = True cert = None @@ -12704,15 +12746,15 @@ raise SSLError(e, request=request) > raise ConnectionError(e, request=request) -E requests.exceptions.ConnectionError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) +E requests.exceptions.ConnectionError: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError(": Failed to resolve 'example.com' ([Errno -3] Temporary failure in name resolution)")) /usr/lib/python3/dist-packages/requests/adapters.py:700: ConnectionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:43] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:35] "GET /status/401 HTTP/1.1" 401 0 ______________ TestStandardRequests.test_multiple_network_filters ______________ -self = -url_401 = 'http://127.0.0.1:35685/status/401' +self = +url_401 = 'http://127.0.0.1:46875/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -12748,13 +12790,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:46] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:34:46] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:34:46] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:35] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:35] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:35] "GET /status/401 HTTP/1.1" 401 0 ____________________ TestStandardRequests.test_json_request ____________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -12771,11 +12813,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:46] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:35] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestStandardRequests.test_json_response ____________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -12790,11 +12832,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:46] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:35] "GET /status/404 HTTP/1.1" 404 0 _____________ TestStandardRequests.test_json_request_and_response ______________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -12812,11 +12854,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:46] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:35] "GET /status/404 HTTP/1.1" 404 0 ____________________ TestStandardRequests.test_header_sent _____________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -12833,11 +12875,11 @@ tests/unit/interceptors/base.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:47] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:35] "GET /status/404 HTTP/1.1" 404 0 ______________ TestStandardRequests.test_mocked_response_headers _______________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -12851,11 +12893,11 @@ tests/unit/interceptors/base.py:217: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:35] "GET /status/404 HTTP/1.1" 404 0 ________________ TestStandardRequests.test_mutli_value_headers _________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -12870,11 +12912,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:36] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_mutli_value_response_headers ____________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -12889,10 +12931,12 @@ E AssertionError tests/unit/interceptors/base.py:239: AssertionError +----------------------------- Captured stderr call ----------------------------- +127.0.0.1 - - [15/Jan/2025 06:45:36] "GET /status/404 HTTP/1.1" 404 0 ____________ TestStandardRequests.test_unmatched_headers_none_sent _____________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -12904,10 +12948,10 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:51] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:36] "GET /status/404 HTTP/1.1" 404 0 ____________________________ test_post_with_headers ____________________________ -URL = 'http://127.0.0.1:35685/foo' +URL = 'http://127.0.0.1:46875/foo' @pytest.mark.pook def test_post_with_headers(URL): @@ -12916,15 +12960,15 @@ resp = http.request("POST", URL) > assert resp.status == 200 E assert 404 == 200 -E + where 404 = .status +E + where 404 = .status tests/unit/interceptors/urllib3_test.py:112: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:52] "POST /foo HTTP/1.1" 404 207 +127.0.0.1 - - [15/Jan/2025 06:45:36] "POST /foo HTTP/1.1" 404 207 _____________________ TestUrllib.test_activate_deactivate ______________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_activate_deactivate(self, url_404): @@ -12938,12 +12982,12 @@ tests/unit/interceptors/base.py:74: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:53] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:36] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_network_mode _________________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' -url_500 = 'http://127.0.0.1:35685/status/500' +self = +url_404 = 'http://127.0.0.1:46875/status/404' +url_500 = 'http://127.0.0.1:46875/status/500' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode(self, url_404, url_500): @@ -12963,14 +13007,14 @@ tests/unit/interceptors/base.py:96: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:53] "POST /status/500 HTTP/1.1" 500 0 -127.0.0.1 - - [14/Jan/2025 04:34:53] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:36] "POST /status/500 HTTP/1.1" 500 0 +127.0.0.1 - - [15/Jan/2025 06:45:36] "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): @@ -13062,8 +13106,8 @@ During handling of the above exception, another exception occurred: -self = -url_401 = 'http://127.0.0.1:35685/status/401' +self = +url_401 = 'http://127.0.0.1:46875/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_network_mode_hostname(self, url_401): @@ -13099,10 +13143,10 @@ return self.do_open(http.client.HTTPConnection, req) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = http_class = -req = , http_conn_args = {} -host = 'example.com', h = +req = , http_conn_args = {} +host = 'example.com', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.12'} def do_open(self, http_class, req, **http_conn_args): @@ -13154,11 +13198,11 @@ /usr/lib/python3.12/urllib/request.py:1347: URLError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:53] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:36] "GET /status/401 HTTP/1.1" 401 0 ___________________ TestUrllib.test_multiple_network_filters ___________________ -self = -url_401 = 'http://127.0.0.1:35685/status/401' +self = +url_401 = 'http://127.0.0.1:46875/status/401' @pytest.mark.pook(allow_pending_mocks=True) def test_multiple_network_filters(self, url_401): @@ -13194,13 +13238,13 @@ tests/unit/interceptors/base.py:154: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:57] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:34:57] "GET /status/401 HTTP/1.1" 401 0 -127.0.0.1 - - [14/Jan/2025 04:34:57] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:38] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:38] "GET /status/401 HTTP/1.1" 401 0 +127.0.0.1 - - [15/Jan/2025 06:45:38] "GET /status/401 HTTP/1.1" 401 0 _________________________ TestUrllib.test_json_request _________________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_json_request(self, url_404): @@ -13217,11 +13261,11 @@ tests/unit/interceptors/base.py:167: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:57] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:38] "GET /status/404 HTTP/1.1" 404 0 ________________________ TestUrllib.test_json_response _________________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_json_response(self, url_404): @@ -13236,11 +13280,11 @@ tests/unit/interceptors/base.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:57] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:38] "GET /status/404 HTTP/1.1" 404 0 __________________ TestUrllib.test_json_request_and_response ___________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_json_request_and_response(self, url_404): @@ -13258,11 +13302,11 @@ tests/unit/interceptors/base.py:193: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:57] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:38] "GET /status/404 HTTP/1.1" 404 0 _________________________ TestUrllib.test_header_sent __________________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_header_sent(self, url_404): @@ -13277,11 +13321,11 @@ tests/unit/interceptors/base.py:205: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:57] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:38] "GET /status/404 HTTP/1.1" 404 0 ___________________ TestUrllib.test_mocked_response_headers ____________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_mocked_response_headers(self, url_404): @@ -13293,11 +13337,11 @@ tests/unit/interceptors/base.py:215: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:58] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:38] "GET /status/404 HTTP/1.1" 404 0 _____________________ TestUrllib.test_mutli_value_headers ______________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_mutli_value_headers(self, url_404): @@ -13312,11 +13356,11 @@ tests/unit/interceptors/base.py:228: AssertionError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:58] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:38] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_mutli_value_response_headers _________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_mutli_value_response_headers(self, url_404): @@ -13330,11 +13374,11 @@ tests/unit/interceptors/base.py:237: ValueError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:58] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:38] "GET /status/404 HTTP/1.1" 404 0 _________________ TestUrllib.test_unmatched_headers_none_sent __________________ -self = -url_404 = 'http://127.0.0.1:35685/status/404' +self = +url_404 = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_unmatched_headers_none_sent(self, url_404): @@ -13346,14 +13390,14 @@ tests/unit/interceptors/base.py:247: Failed ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:34:58] "GET /status/404 HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:38] "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): @@ -13420,7 +13464,7 @@ raise exceptions[0] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -address = ('127.0.0.1', 9), timeout = +address = ('127.0.0.1', 9), timeout = source_address = None def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, @@ -13476,11 +13520,11 @@ return self.do_open(http.client.HTTPSConnection, req, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = http_class = -req = -http_conn_args = {'context': } -host = '127.0.0.1:9', h = +req = +http_conn_args = {'context': } +host = '127.0.0.1:9', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.12'} def do_open(self, http_class, req, **http_conn_args): @@ -13533,10 +13577,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): @@ -13647,10 +13691,10 @@ return self.do_open(http.client.HTTPConnection, req) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = http_class = -req = , http_conn_args = {} -host = 'example.com', h = +req = , http_conn_args = {} +host = 'example.com', h = headers = {'Connection': 'close', 'Host': 'example.com', 'User-Agent': 'Python-urllib/3.12'} def do_open(self, http_class, req, **http_conn_args): @@ -13891,7 +13935,7 @@ tests/unit/matchers/headers_test.py:171: AssertionError ______________________ test_param_exists_empty_disallowed ______________________ -URL = 'http://127.0.0.1:35685/status/404' +URL = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook(allow_pending_mocks=True) def test_param_exists_empty_disallowed(URL): @@ -13914,10 +13958,10 @@ result = func(*args) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -req = -fp = , code = 404 -msg = 'NOT FOUND', hdrs = +self = +req = +fp = , code = 404 +msg = 'NOT FOUND', hdrs = def http_error_default(self, req, fp, code, msg, hdrs): > raise HTTPError(req.full_url, code, msg, hdrs, fp) @@ -13925,10 +13969,10 @@ /usr/lib/python3.12/urllib/request.py:639: HTTPError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:35:08] "GET /status/404?x HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:41] "GET /status/404?x HTTP/1.1" 404 0 _______________________ test_param_exists_empty_allowed ________________________ -URL = 'http://127.0.0.1:35685/status/404' +URL = 'http://127.0.0.1:46875/status/404' @pytest.mark.pook def test_param_exists_empty_allowed(URL): @@ -13950,10 +13994,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) @@ -13961,7 +14005,7 @@ /usr/lib/python3.12/urllib/request.py:639: HTTPError ----------------------------- Captured stderr call ----------------------------- -127.0.0.1 - - [14/Jan/2025 04:35:10] "GET /status/404?x HTTP/1.1" 404 0 +127.0.0.1 - - [15/Jan/2025 06:45:42] "GET /status/404?x HTTP/1.1" 404 0 ________________________ test_mock_constructor[params] _________________________ param_kwargs = {'params': {'x': '1'}}, query_string = '?x=1' @@ -14030,7 +14074,7 @@ self.no_matches(msg) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = msg = "pook error!\n\n=> Cannot match any mock for the following request:\n=================================================...============\n\n=> Detailed matching errors:\nURLMatcher: 'httpbin.org' != '127.0.0.1'\n- httpbin.org\n+ 127.0.0.1\n\n" def no_matches(self, msg): @@ -14120,7 +14164,7 @@ self.no_matches(msg) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = msg = "pook error!\n\n=> Cannot match any mock for the following request:\n=================================================...============\n\n=> Detailed matching errors:\nURLMatcher: 'httpbin.org' != '127.0.0.1'\n- httpbin.org\n+ 127.0.0.1\n\n" def no_matches(self, msg): @@ -14287,12 +14331,12 @@ -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ -FAILED tests/integration/examples_test.py::test_examples[network_mode_httpx.py] +FAILED tests/integration/examples_test.py::test_examples[decorators.py] - Ass... +FAILED tests/integration/examples_test.py::test_examples[network_mode.py] - A... FAILED tests/integration/examples_test.py::test_examples[aiohttp_client.py] FAILED tests/integration/examples_test.py::test_examples[mock_context_manager.py] -FAILED tests/integration/examples_test.py::test_examples[decorators.py] - Ass... +FAILED tests/integration/examples_test.py::test_examples[network_mode_httpx.py] FAILED tests/integration/examples_test.py::test_examples[urllib3_client.py] -FAILED tests/integration/examples_test.py::test_examples[network_mode.py] - A... FAILED tests/integration/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 @@ -14382,7 +14426,7 @@ FAILED tests/unit/matchers/query_test.py::test_param_exists_empty_allowed - u... FAILED tests/unit/mock_test.py::test_mock_constructor[params] - pook.exceptio... FAILED tests/unit/mock_test.py::test_mock_constructor[param_exists_has_value] -= 95 failed, 124 passed, 10 skipped, 3 xfailed, 42 warnings in 375.20s (0:06:15) = += 95 failed, 124 passed, 10 skipped, 3 xfailed, 42 warnings in 122.81s (0:02:02) = E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-pook-2.1.3/.pybuild/cpython3_3.12_pook/build; python3.12 -m pytest tests dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.13 3.12" returned exit code 13 make[1]: Leaving directory '/build/reproducible-path/python-pook-2.1.3' @@ -14410,8 +14454,8 @@ dpkg-gencontrol: warning: package python-pook-doc: substitution variable ${sphinxdoc:Built-Using} unused, but is defined dh_md5sums -O--buildsystem=pybuild dh_builddeb -O--buildsystem=pybuild -dpkg-deb: building package 'python-pook-doc' in '../python-pook-doc_2.1.3-1_all.deb'. dpkg-deb: building package 'python3-pook' in '../python3-pook_2.1.3-1_all.deb'. +dpkg-deb: building package 'python-pook-doc' in '../python-pook-doc_2.1.3-1_all.deb'. dpkg-genbuildinfo --build=binary -O../python-pook_2.1.3-1_armhf.buildinfo dpkg-genchanges --build=binary -O../python-pook_2.1.3-1_armhf.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -14420,12 +14464,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/16902/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/16902/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/7671 and its subdirectories -I: Current time: Tue Jan 14 04:37:15 -12 2025 -I: pbuilder-time-stamp: 1736872635 +I: removing directory /srv/workspace/pbuilder/16902 and its subdirectories +I: Current time: Wed Jan 15 06:46:16 +14 2025 +I: pbuilder-time-stamp: 1736873176