Diff of the two buildlogs: -- --- b1/build.log 2024-12-18 00:29:38.493104416 +0000 +++ b2/build.log 2024-12-18 00:31:28.212131716 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Jan 19 18:51:38 -12 2026 -I: pbuilder-time-stamp: 1768891898 +I: Current time: Wed Dec 18 14:29:40 +14 2024 +I: pbuilder-time-stamp: 1734481780 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -27,54 +27,86 @@ dpkg-source: info: unpacking python-tuf_5.1.0-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/18317/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/64080/tmp/hooks/D01_modify_environment starting +debug: Running on ionos12-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Dec 18 00:29 /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/64080/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/64080/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=22 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='i386' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=10 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='91814602082047008a616eb421c906d0' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='18317' - PS1='# ' - PS2='> ' + INVOCATION_ID=83554e11dc11460ea1f870e1104d0f34 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=64080 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.ZP8Z8uTi/pbuilderrc_VbCr --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.ZP8Z8uTi/b1 --logfile b1/build.log python-tuf_5.1.0-1.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.ZP8Z8uTi/pbuilderrc_GD8l --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.ZP8Z8uTi/b2 --logfile b2/build.log python-tuf_5.1.0-1.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos16-i386 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/18317/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/64080/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -219,7 +251,7 @@ Get: 91 http://deb.debian.org/debian unstable/main i386 python3-urllib3 all 2.2.3-4 [112 kB] Get: 92 http://deb.debian.org/debian unstable/main i386 python3-requests all 2.32.3+dfsg-1 [71.9 kB] Get: 93 http://deb.debian.org/debian unstable/main i386 python3-securesystemslib all 1.2.0-2 [755 kB] -Fetched 39.2 MB in 0s (89.5 MB/s) +Fetched 39.2 MB in 1s (42.6 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.12-minimal:i386. (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 ... 19952 files and directories currently installed.) @@ -532,8 +564,8 @@ Setting up tzdata (2024b-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Tue Jan 20 06:52:00 UTC 2026. -Universal Time is now: Tue Jan 20 06:52:00 UTC 2026. +Local time is now: Wed Dec 18 00:30:16 UTC 2024. +Universal Time is now: Wed Dec 18 00:30:16 UTC 2024. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libpython3.13-minimal:i386 (3.13.1-2) ... @@ -627,7 +659,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/python-tuf-5.1.0/ && 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-tuf_5.1.0-1_source.changes +I: user script /srv/workspace/pbuilder/64080/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/64080/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/python-tuf-5.1.0/ && 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-tuf_5.1.0-1_source.changes dpkg-buildpackage: info: source package python-tuf dpkg-buildpackage: info: source version 5.1.0-1 dpkg-buildpackage: info: source distribution unstable @@ -849,7 +885,7 @@ tests/test_examples.py:53: FileNotFoundError _______________________ TestFetcher.test_download_bytes ________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -926,15 +962,15 @@ The above exception was the direct cause of the following exception: -self = -method = 'GET', url = 'http://127.0.0.1:40497/tmp_oqplvc7', body = None +self = +method = 'GET', url = 'http://127.0.0.1:39653/tmpmu8o6ig5', body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40497, path='/tmp_oqplvc7', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=39653, path='/tmpmu8o6ig5', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -1164,7 +1200,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -1190,7 +1226,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -1247,15 +1283,15 @@ raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -1335,10 +1371,10 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) -method = 'GET', url = 'http://127.0.0.1:40497/tmp_oqplvc7', response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +method = 'GET', url = 'http://127.0.0.1:39653/tmpmu8o6ig5', response = None +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -1432,14 +1468,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40497/tmp_oqplvc7 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:39653/tmpmu8o6ig5 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:40497/tmp_oqplvc7' +self = +url = 'http://127.0.0.1:39653/tmpmu8o6ig5' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -1471,7 +1507,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -1558,7 +1594,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40497/tmp_oqplvc7 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:39653/tmpmu8o6ig5 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -1579,8 +1615,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:40497/tmp_oqplvc7' +self = +url = 'http://127.0.0.1:39653/tmpmu8o6ig5' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -1603,12 +1639,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40497/tmp_oqplvc7 +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:39653/tmpmu8o6ig5 tuf/ngclient/fetcher.py:72: DownloadError _______________ TestFetcher.test_download_bytes_length_mismatch ________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -1685,15 +1721,15 @@ The above exception was the direct cause of the following exception: -self = -method = 'GET', url = 'http://127.0.0.1:40497/tmp_oqplvc7', body = None +self = +method = 'GET', url = 'http://127.0.0.1:39653/tmpmu8o6ig5', body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40497, path='/tmp_oqplvc7', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=39653, path='/tmpmu8o6ig5', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -1923,7 +1959,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -1949,7 +1985,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -2006,15 +2042,15 @@ raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -2094,10 +2130,10 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) -method = 'GET', url = 'http://127.0.0.1:40497/tmp_oqplvc7', response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +method = 'GET', url = 'http://127.0.0.1:39653/tmpmu8o6ig5', response = None +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -2191,7 +2227,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40497/tmp_oqplvc7 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:39653/tmpmu8o6ig5 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError @@ -2227,7 +2263,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -2314,7 +2350,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40497/tmp_oqplvc7 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:39653/tmpmu8o6ig5 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -2357,12 +2393,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40497/tmp_oqplvc7 +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:39653/tmpmu8o6ig5 tuf/ngclient/fetcher.py:72: DownloadError _________________ TestFetcher.test_download_bytes_upper_length _________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -2439,15 +2475,15 @@ The above exception was the direct cause of the following exception: -self = -method = 'GET', url = 'http://127.0.0.1:40497/tmp_oqplvc7', body = None +self = +method = 'GET', url = 'http://127.0.0.1:39653/tmpmu8o6ig5', body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40497, path='/tmp_oqplvc7', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=39653, path='/tmpmu8o6ig5', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -2677,7 +2713,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -2703,7 +2739,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -2760,15 +2796,15 @@ raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -2848,10 +2884,10 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) -method = 'GET', url = 'http://127.0.0.1:40497/tmp_oqplvc7', response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +method = 'GET', url = 'http://127.0.0.1:39653/tmpmu8o6ig5', response = None +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -2945,14 +2981,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40497/tmp_oqplvc7 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:39653/tmpmu8o6ig5 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:40497/tmp_oqplvc7' +self = +url = 'http://127.0.0.1:39653/tmpmu8o6ig5' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -2984,7 +3020,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -3071,7 +3107,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40497/tmp_oqplvc7 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:39653/tmpmu8o6ig5 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -3092,8 +3128,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:40497/tmp_oqplvc7' +self = +url = 'http://127.0.0.1:39653/tmpmu8o6ig5' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -3116,12 +3152,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40497/tmp_oqplvc7 +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:39653/tmpmu8o6ig5 tuf/ngclient/fetcher.py:72: DownloadError ________________________ TestFetcher.test_download_file ________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -3198,15 +3234,15 @@ The above exception was the direct cause of the following exception: -self = -method = 'GET', url = 'http://127.0.0.1:40497/tmp_oqplvc7', body = None +self = +method = 'GET', url = 'http://127.0.0.1:39653/tmpmu8o6ig5', body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40497, path='/tmp_oqplvc7', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=39653, path='/tmpmu8o6ig5', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -3436,7 +3472,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -3462,7 +3498,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -3519,15 +3555,15 @@ raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -3607,10 +3643,10 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) -method = 'GET', url = 'http://127.0.0.1:40497/tmp_oqplvc7', response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +method = 'GET', url = 'http://127.0.0.1:39653/tmpmu8o6ig5', response = None +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -3704,14 +3740,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40497/tmp_oqplvc7 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:39653/tmpmu8o6ig5 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:40497/tmp_oqplvc7' +self = +url = 'http://127.0.0.1:39653/tmpmu8o6ig5' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -3743,7 +3779,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -3830,7 +3866,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40497/tmp_oqplvc7 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:39653/tmpmu8o6ig5 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -3851,8 +3887,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:40497/tmp_oqplvc7' +self = +url = 'http://127.0.0.1:39653/tmpmu8o6ig5' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -3875,12 +3911,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40497/tmp_oqplvc7 +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:39653/tmpmu8o6ig5 tuf/ngclient/fetcher.py:72: DownloadError _________________ TestFetcher.test_download_file_upper_length __________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -3957,15 +3993,15 @@ The above exception was the direct cause of the following exception: -self = -method = 'GET', url = 'http://127.0.0.1:40497/tmp_oqplvc7', body = None +self = +method = 'GET', url = 'http://127.0.0.1:39653/tmpmu8o6ig5', body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40497, path='/tmp_oqplvc7', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=39653, path='/tmpmu8o6ig5', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -4195,7 +4231,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -4221,7 +4257,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -4278,15 +4314,15 @@ raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -4366,10 +4402,10 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) -method = 'GET', url = 'http://127.0.0.1:40497/tmp_oqplvc7', response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +method = 'GET', url = 'http://127.0.0.1:39653/tmpmu8o6ig5', response = None +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -4463,14 +4499,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40497/tmp_oqplvc7 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:39653/tmpmu8o6ig5 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:40497/tmp_oqplvc7' +self = +url = 'http://127.0.0.1:39653/tmpmu8o6ig5' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -4502,7 +4538,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -4589,7 +4625,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40497/tmp_oqplvc7 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:39653/tmpmu8o6ig5 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -4610,8 +4646,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:40497/tmp_oqplvc7' +self = +url = 'http://127.0.0.1:39653/tmpmu8o6ig5' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -4634,12 +4670,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40497/tmp_oqplvc7 +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:39653/tmpmu8o6ig5 tuf/ngclient/fetcher.py:72: DownloadError ____________________________ TestFetcher.test_fetch ____________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -4716,15 +4752,15 @@ The above exception was the direct cause of the following exception: -self = -method = 'GET', url = 'http://127.0.0.1:40497/tmp_oqplvc7', body = None +self = +method = 'GET', url = 'http://127.0.0.1:39653/tmpmu8o6ig5', body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40497, path='/tmp_oqplvc7', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=39653, path='/tmpmu8o6ig5', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -4954,7 +4990,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -4980,7 +5016,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -5037,15 +5073,15 @@ raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -5125,10 +5161,10 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) -method = 'GET', url = 'http://127.0.0.1:40497/tmp_oqplvc7', response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +method = 'GET', url = 'http://127.0.0.1:39653/tmpmu8o6ig5', response = None +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -5222,14 +5258,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40497/tmp_oqplvc7 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:39653/tmpmu8o6ig5 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:40497/tmp_oqplvc7' +self = +url = 'http://127.0.0.1:39653/tmpmu8o6ig5' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -5261,7 +5297,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -5348,7 +5384,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40497/tmp_oqplvc7 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:39653/tmpmu8o6ig5 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -5363,8 +5399,8 @@ tests/test_fetcher_ng.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:40497/tmp_oqplvc7' +self = +url = 'http://127.0.0.1:39653/tmpmu8o6ig5' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -5387,12 +5423,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40497/tmp_oqplvc7 +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:39653/tmpmu8o6ig5 tuf/ngclient/fetcher.py:72: DownloadError _______________________ TestFetcher.test_fetch_in_chunks _______________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -5469,15 +5505,15 @@ The above exception was the direct cause of the following exception: -self = -method = 'GET', url = 'http://127.0.0.1:40497/tmp_oqplvc7', body = None +self = +method = 'GET', url = 'http://127.0.0.1:39653/tmpmu8o6ig5', body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40497, path='/tmp_oqplvc7', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=39653, path='/tmpmu8o6ig5', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -5707,7 +5743,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -5733,7 +5769,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -5790,15 +5826,15 @@ raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -5878,10 +5914,10 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) -method = 'GET', url = 'http://127.0.0.1:40497/tmp_oqplvc7', response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +method = 'GET', url = 'http://127.0.0.1:39653/tmpmu8o6ig5', response = None +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -5975,14 +6011,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40497/tmp_oqplvc7 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:39653/tmpmu8o6ig5 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:40497/tmp_oqplvc7' +self = +url = 'http://127.0.0.1:39653/tmpmu8o6ig5' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -6014,7 +6050,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -6101,7 +6137,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40497/tmp_oqplvc7 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:39653/tmpmu8o6ig5 (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -6127,8 +6163,8 @@ tests/test_fetcher_ng.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:40497/tmp_oqplvc7' +self = +url = 'http://127.0.0.1:39653/tmpmu8o6ig5' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -6151,12 +6187,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40497/tmp_oqplvc7 +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:39653/tmpmu8o6ig5 tuf/ngclient/fetcher.py:72: DownloadError _________________________ TestFetcher.test_http_error __________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -6233,15 +6269,15 @@ The above exception was the direct cause of the following exception: -self = -method = 'GET', url = 'http://127.0.0.1:40497/non-existing-path', body = None +self = +method = 'GET', url = 'http://127.0.0.1:39653/non-existing-path', body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40497, path='/non-existing-path', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=39653, path='/non-existing-path', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -6471,7 +6507,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -6497,7 +6533,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -6554,15 +6590,15 @@ raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -6642,11 +6678,11 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) -method = 'GET', url = 'http://127.0.0.1:40497/non-existing-path' +method = 'GET', url = 'http://127.0.0.1:39653/non-existing-path' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -6740,7 +6776,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40497/non-existing-path (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:39653/non-existing-path (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError @@ -6776,7 +6812,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -6863,7 +6899,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40497/non-existing-path (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:39653/non-existing-path (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -6900,12 +6936,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40497/non-existing-path +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:39653/non-existing-path tuf/ngclient/fetcher.py:72: DownloadError ____________________ TestUpdater.test_external_targets_url _____________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -6982,9 +7018,9 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET' -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmpeijhc8ca/repository/metadata/2.root.json' +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpoady8fu0/repository/metadata/2.root.json' body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -6992,7 +7028,7 @@ timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=46805, path='/tmp4xnt3yse/tmpeijhc8ca/repository/metadata/2.root.json', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=42639, path='/tmp21bwo7ra/tmpoady8fu0/repository/metadata/2.root.json', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -7222,7 +7258,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -7248,7 +7284,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -7305,15 +7341,15 @@ raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -7394,11 +7430,11 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET' -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmpeijhc8ca/repository/metadata/2.root.json' +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpoady8fu0/repository/metadata/2.root.json' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -7492,14 +7528,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:46805/tmp4xnt3yse/tmpeijhc8ca/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:42639/tmp21bwo7ra/tmpoady8fu0/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmpeijhc8ca/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpoady8fu0/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -7531,7 +7567,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -7618,7 +7654,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:46805/tmp4xnt3yse/tmpeijhc8ca/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:42639/tmp21bwo7ra/tmpoady8fu0/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -7645,8 +7681,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmpeijhc8ca/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpoady8fu0/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -7669,12 +7705,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:46805/tmp4xnt3yse/tmpeijhc8ca/repository/metadata/2.root.json +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:42639/tmp21bwo7ra/tmpoady8fu0/repository/metadata/2.root.json tuf/ngclient/fetcher.py:72: DownloadError ____________ TestUpdater.test_implicit_refresh_with_only_local_root ____________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -7751,9 +7787,9 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET' -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmplb916jgx/repository/metadata/2.root.json' +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpaty6h4e7/repository/metadata/2.root.json' body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -7761,7 +7797,7 @@ timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=46805, path='/tmp4xnt3yse/tmplb916jgx/repository/metadata/2.root.json', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=42639, path='/tmp21bwo7ra/tmpaty6h4e7/repository/metadata/2.root.json', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -7991,7 +8027,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -8017,7 +8053,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -8074,15 +8110,15 @@ raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -8163,11 +8199,11 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET' -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmplb916jgx/repository/metadata/2.root.json' +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpaty6h4e7/repository/metadata/2.root.json' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -8261,14 +8297,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:46805/tmp4xnt3yse/tmplb916jgx/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:42639/tmp21bwo7ra/tmpaty6h4e7/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmplb916jgx/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpaty6h4e7/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -8300,7 +8336,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -8387,7 +8423,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:46805/tmp4xnt3yse/tmplb916jgx/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:42639/tmp21bwo7ra/tmpaty6h4e7/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -8425,8 +8461,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmplb916jgx/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpaty6h4e7/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -8449,12 +8485,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:46805/tmp4xnt3yse/tmplb916jgx/repository/metadata/2.root.json +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:42639/tmp21bwo7ra/tmpaty6h4e7/repository/metadata/2.root.json tuf/ngclient/fetcher.py:72: DownloadError ____________________ TestUpdater.test_length_hash_mismatch _____________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -8531,9 +8567,9 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET' -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmpdn7lzgqt/repository/metadata/2.root.json' +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmplk72m50n/repository/metadata/2.root.json' body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -8541,7 +8577,7 @@ timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=46805, path='/tmp4xnt3yse/tmpdn7lzgqt/repository/metadata/2.root.json', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=42639, path='/tmp21bwo7ra/tmplk72m50n/repository/metadata/2.root.json', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -8771,7 +8807,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -8797,7 +8833,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -8854,15 +8890,15 @@ raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -8943,11 +8979,11 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET' -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmpdn7lzgqt/repository/metadata/2.root.json' +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmplk72m50n/repository/metadata/2.root.json' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -9041,14 +9077,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:46805/tmp4xnt3yse/tmpdn7lzgqt/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:42639/tmp21bwo7ra/tmplk72m50n/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmpdn7lzgqt/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmplk72m50n/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -9080,7 +9116,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -9167,7 +9203,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:46805/tmp4xnt3yse/tmpdn7lzgqt/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:42639/tmp21bwo7ra/tmplk72m50n/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -9194,8 +9230,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmpdn7lzgqt/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmplk72m50n/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -9218,12 +9254,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:46805/tmp4xnt3yse/tmpdn7lzgqt/repository/metadata/2.root.json +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:42639/tmp21bwo7ra/tmplk72m50n/repository/metadata/2.root.json tuf/ngclient/fetcher.py:72: DownloadError _____________________ TestUpdater.test_missing_targetinfo ______________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -9300,9 +9336,9 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET' -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmp56kl707q/repository/metadata/2.root.json' +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpwz3tugkl/repository/metadata/2.root.json' body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -9310,7 +9346,7 @@ timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=46805, path='/tmp4xnt3yse/tmp56kl707q/repository/metadata/2.root.json', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=42639, path='/tmp21bwo7ra/tmpwz3tugkl/repository/metadata/2.root.json', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -9540,7 +9576,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -9566,7 +9602,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -9623,15 +9659,15 @@ raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -9712,11 +9748,11 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET' -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmp56kl707q/repository/metadata/2.root.json' +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpwz3tugkl/repository/metadata/2.root.json' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -9810,14 +9846,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:46805/tmp4xnt3yse/tmp56kl707q/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:42639/tmp21bwo7ra/tmpwz3tugkl/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmp56kl707q/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpwz3tugkl/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -9849,7 +9885,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -9936,7 +9972,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:46805/tmp4xnt3yse/tmp56kl707q/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:42639/tmp21bwo7ra/tmpwz3tugkl/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -9963,8 +9999,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmp56kl707q/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpwz3tugkl/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -9987,12 +10023,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:46805/tmp4xnt3yse/tmp56kl707q/repository/metadata/2.root.json +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:42639/tmp21bwo7ra/tmpwz3tugkl/repository/metadata/2.root.json tuf/ngclient/fetcher.py:72: DownloadError __________________ TestUpdater.test_non_existing_target_file ___________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -10069,9 +10105,9 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET' -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmpigl6ek78/repository/targets//non_existing_file.txt' +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpmg3lvcjr/repository/targets//non_existing_file.txt' body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -10079,7 +10115,7 @@ timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=46805, path='/tmp4xnt3yse/tmpigl6ek78/repository/targets//non_existing_file.txt', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=42639, path='/tmp21bwo7ra/tmpmg3lvcjr/repository/targets//non_existing_file.txt', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -10309,7 +10345,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -10335,7 +10371,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -10392,15 +10428,15 @@ raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -10481,11 +10517,11 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET' -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmpigl6ek78/repository/targets//non_existing_file.txt' +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpmg3lvcjr/repository/targets//non_existing_file.txt' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -10579,7 +10615,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:46805/tmp4xnt3yse/tmpigl6ek78/repository/targets//non_existing_file.txt (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:42639/tmp21bwo7ra/tmpmg3lvcjr/repository/targets//non_existing_file.txt (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError @@ -10615,7 +10651,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -10702,7 +10738,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:46805/tmp4xnt3yse/tmpigl6ek78/repository/targets//non_existing_file.txt (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:42639/tmp21bwo7ra/tmpmg3lvcjr/repository/targets//non_existing_file.txt (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -10748,12 +10784,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:46805/tmp4xnt3yse/tmpigl6ek78/repository/targets//non_existing_file.txt +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:42639/tmp21bwo7ra/tmpmg3lvcjr/repository/targets//non_existing_file.txt tuf/ngclient/fetcher.py:72: DownloadError ____________________ TestUpdater.test_refresh_and_download _____________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -10830,9 +10866,9 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET' -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmp19v6o1me/repository/metadata/2.root.json' +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpen82tads/repository/metadata/2.root.json' body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -10840,7 +10876,7 @@ timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=46805, path='/tmp4xnt3yse/tmp19v6o1me/repository/metadata/2.root.json', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=42639, path='/tmp21bwo7ra/tmpen82tads/repository/metadata/2.root.json', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -11070,7 +11106,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -11096,7 +11132,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -11153,15 +11189,15 @@ raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -11242,11 +11278,11 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET' -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmp19v6o1me/repository/metadata/2.root.json' +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpen82tads/repository/metadata/2.root.json' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -11340,14 +11376,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:46805/tmp4xnt3yse/tmp19v6o1me/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:42639/tmp21bwo7ra/tmpen82tads/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmp19v6o1me/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpen82tads/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -11379,7 +11415,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -11466,7 +11502,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:46805/tmp4xnt3yse/tmp19v6o1me/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:42639/tmp21bwo7ra/tmpen82tads/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -11501,8 +11537,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmp19v6o1me/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpen82tads/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -11525,12 +11561,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:46805/tmp4xnt3yse/tmp19v6o1me/repository/metadata/2.root.json +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:42639/tmp21bwo7ra/tmpen82tads/repository/metadata/2.root.json tuf/ngclient/fetcher.py:72: DownloadError ________________ TestUpdater.test_refresh_with_only_local_root _________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -11607,9 +11643,9 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET' -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmpjqz3gkz_/repository/metadata/2.root.json' +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpqqv4qf_c/repository/metadata/2.root.json' body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -11617,7 +11653,7 @@ timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=46805, path='/tmp4xnt3yse/tmpjqz3gkz_/repository/metadata/2.root.json', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=42639, path='/tmp21bwo7ra/tmpqqv4qf_c/repository/metadata/2.root.json', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -11847,7 +11883,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -11873,7 +11909,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -11930,15 +11966,15 @@ raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -12019,11 +12055,11 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET' -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmpjqz3gkz_/repository/metadata/2.root.json' +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpqqv4qf_c/repository/metadata/2.root.json' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -12117,14 +12153,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:46805/tmp4xnt3yse/tmpjqz3gkz_/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:42639/tmp21bwo7ra/tmpqqv4qf_c/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmpjqz3gkz_/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpqqv4qf_c/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -12156,7 +12192,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -12243,7 +12279,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:46805/tmp4xnt3yse/tmpjqz3gkz_/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:42639/tmp21bwo7ra/tmpqqv4qf_c/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -12278,8 +12314,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmpjqz3gkz_/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpqqv4qf_c/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -12302,12 +12338,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:46805/tmp4xnt3yse/tmpjqz3gkz_/repository/metadata/2.root.json +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:42639/tmp21bwo7ra/tmpqqv4qf_c/repository/metadata/2.root.json tuf/ngclient/fetcher.py:72: DownloadError ________________________ TestUpdater.test_updating_root ________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -12384,9 +12420,9 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET' -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmp54wj8d3y/repository/metadata/2.root.json' +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpppxyis4r/repository/metadata/2.root.json' body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -12394,7 +12430,7 @@ timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=46805, path='/tmp4xnt3yse/tmp54wj8d3y/repository/metadata/2.root.json', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=42639, path='/tmp21bwo7ra/tmpppxyis4r/repository/metadata/2.root.json', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -12624,7 +12660,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -12650,7 +12686,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -12707,15 +12743,15 @@ raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -12796,11 +12832,11 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET' -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmp54wj8d3y/repository/metadata/2.root.json' +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpppxyis4r/repository/metadata/2.root.json' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -12894,14 +12930,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:46805/tmp4xnt3yse/tmp54wj8d3y/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:42639/tmp21bwo7ra/tmpppxyis4r/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmp54wj8d3y/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpppxyis4r/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -12933,7 +12969,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -13020,7 +13056,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:46805/tmp4xnt3yse/tmp54wj8d3y/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:42639/tmp21bwo7ra/tmpppxyis4r/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -13049,8 +13085,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmp54wj8d3y/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpppxyis4r/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -13073,12 +13109,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:46805/tmp4xnt3yse/tmp54wj8d3y/repository/metadata/2.root.json +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:42639/tmp21bwo7ra/tmpppxyis4r/repository/metadata/2.root.json tuf/ngclient/fetcher.py:72: DownloadError _________________________ TestUpdater.test_user_agent __________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -13155,9 +13191,9 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET' -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmpaza8tj5o/repository/metadata/2.root.json' +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpyofquibu/repository/metadata/2.root.json' body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -13165,7 +13201,7 @@ timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=46805, path='/tmp4xnt3yse/tmpaza8tj5o/repository/metadata/2.root.json', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=42639, path='/tmp21bwo7ra/tmpyofquibu/repository/metadata/2.root.json', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -13395,7 +13431,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -13421,7 +13457,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -13478,15 +13514,15 @@ raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -13567,11 +13603,11 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET' -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmpaza8tj5o/repository/metadata/2.root.json' +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpyofquibu/repository/metadata/2.root.json' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -13665,14 +13701,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:46805/tmp4xnt3yse/tmpaza8tj5o/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:42639/tmp21bwo7ra/tmpyofquibu/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmpaza8tj5o/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpyofquibu/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -13704,7 +13740,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -13791,7 +13827,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:46805/tmp4xnt3yse/tmpaza8tj5o/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:42639/tmp21bwo7ra/tmpyofquibu/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -13819,8 +13855,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:46805/tmp4xnt3yse/tmpaza8tj5o/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:42639/tmp21bwo7ra/tmpyofquibu/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -13843,7 +13879,7 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:46805/tmp4xnt3yse/tmpaza8tj5o/repository/metadata/2.root.json +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:42639/tmp21bwo7ra/tmpyofquibu/repository/metadata/2.root.json tuf/ngclient/fetcher.py:72: DownloadError ________________________ TestServerProcess.test_cleanup ________________________ @@ -13866,7 +13902,7 @@ self._wait_for_port(timeout) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = , timeout = 10 +self = , timeout = 10 def _wait_for_port(self, timeout: int) -> None: """ @@ -13952,7 +13988,7 @@ FAILED tests/test_updater_ng.py::TestUpdater::test_updating_root - tuf.api.ex... FAILED tests/test_updater_ng.py::TestUpdater::test_user_agent - tuf.api.excep... FAILED tests/test_utils.py::TestServerProcess::test_cleanup - tests.utils.Tes... -================== 21 failed, 163 passed, 5 warnings in 6.66s ================== +================= 21 failed, 163 passed, 5 warnings in 12.31s ================== E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-tuf-5.1.0/.pybuild/cpython3_3.13/build; python3.13 -m pytest --ignore tests/test_metadata_generation.py I: pybuild base:311: cd /build/reproducible-path/python-tuf-5.1.0/.pybuild/cpython3_3.12/build; python3.12 -m pytest --ignore tests/test_metadata_generation.py ============================= test session starts ============================== @@ -14145,7 +14181,7 @@ tests/test_examples.py:53: FileNotFoundError _______________________ TestFetcher.test_download_bytes ________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -14222,15 +14258,15 @@ The above exception was the direct cause of the following exception: -self = -method = 'GET', url = 'http://127.0.0.1:40829/tmpeu5re0en', body = None +self = +method = 'GET', url = 'http://127.0.0.1:45361/tmpgb38z8xi', body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40829, path='/tmpeu5re0en', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=45361, path='/tmpgb38z8xi', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -14460,7 +14496,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -14486,7 +14522,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -14522,15 +14558,15 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 214, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -14610,10 +14646,10 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) -method = 'GET', url = 'http://127.0.0.1:40829/tmpeu5re0en', response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +method = 'GET', url = 'http://127.0.0.1:45361/tmpgb38z8xi', response = None +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -14707,14 +14743,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40829/tmpeu5re0en (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45361/tmpgb38z8xi (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:40829/tmpeu5re0en' +self = +url = 'http://127.0.0.1:45361/tmpgb38z8xi' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -14746,7 +14782,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -14833,7 +14869,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40829/tmpeu5re0en (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45361/tmpgb38z8xi (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -14854,8 +14890,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:40829/tmpeu5re0en' +self = +url = 'http://127.0.0.1:45361/tmpgb38z8xi' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -14878,12 +14914,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40829/tmpeu5re0en +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:45361/tmpgb38z8xi tuf/ngclient/fetcher.py:72: DownloadError _______________ TestFetcher.test_download_bytes_length_mismatch ________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -14960,15 +14996,15 @@ The above exception was the direct cause of the following exception: -self = -method = 'GET', url = 'http://127.0.0.1:40829/tmpeu5re0en', body = None +self = +method = 'GET', url = 'http://127.0.0.1:45361/tmpgb38z8xi', body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40829, path='/tmpeu5re0en', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=45361, path='/tmpgb38z8xi', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -15198,7 +15234,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -15224,7 +15260,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -15260,15 +15296,15 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 214, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -15348,10 +15384,10 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) -method = 'GET', url = 'http://127.0.0.1:40829/tmpeu5re0en', response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +method = 'GET', url = 'http://127.0.0.1:45361/tmpgb38z8xi', response = None +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -15445,7 +15481,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40829/tmpeu5re0en (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45361/tmpgb38z8xi (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError @@ -15481,7 +15517,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -15568,7 +15604,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40829/tmpeu5re0en (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45361/tmpgb38z8xi (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -15611,12 +15647,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40829/tmpeu5re0en +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:45361/tmpgb38z8xi tuf/ngclient/fetcher.py:72: DownloadError _________________ TestFetcher.test_download_bytes_upper_length _________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -15693,15 +15729,15 @@ The above exception was the direct cause of the following exception: -self = -method = 'GET', url = 'http://127.0.0.1:40829/tmpeu5re0en', body = None +self = +method = 'GET', url = 'http://127.0.0.1:45361/tmpgb38z8xi', body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40829, path='/tmpeu5re0en', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=45361, path='/tmpgb38z8xi', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -15931,7 +15967,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -15957,7 +15993,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -15993,15 +16029,15 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 214, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -16081,10 +16117,10 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) -method = 'GET', url = 'http://127.0.0.1:40829/tmpeu5re0en', response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +method = 'GET', url = 'http://127.0.0.1:45361/tmpgb38z8xi', response = None +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -16178,14 +16214,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40829/tmpeu5re0en (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45361/tmpgb38z8xi (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:40829/tmpeu5re0en' +self = +url = 'http://127.0.0.1:45361/tmpgb38z8xi' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -16217,7 +16253,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -16304,7 +16340,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40829/tmpeu5re0en (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45361/tmpgb38z8xi (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -16325,8 +16361,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:40829/tmpeu5re0en' +self = +url = 'http://127.0.0.1:45361/tmpgb38z8xi' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -16349,12 +16385,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40829/tmpeu5re0en +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:45361/tmpgb38z8xi tuf/ngclient/fetcher.py:72: DownloadError ________________________ TestFetcher.test_download_file ________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -16431,15 +16467,15 @@ The above exception was the direct cause of the following exception: -self = -method = 'GET', url = 'http://127.0.0.1:40829/tmpeu5re0en', body = None +self = +method = 'GET', url = 'http://127.0.0.1:45361/tmpgb38z8xi', body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40829, path='/tmpeu5re0en', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=45361, path='/tmpgb38z8xi', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -16669,7 +16705,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -16695,7 +16731,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -16731,15 +16767,15 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 214, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -16819,10 +16855,10 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) -method = 'GET', url = 'http://127.0.0.1:40829/tmpeu5re0en', response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +method = 'GET', url = 'http://127.0.0.1:45361/tmpgb38z8xi', response = None +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -16916,14 +16952,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40829/tmpeu5re0en (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45361/tmpgb38z8xi (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:40829/tmpeu5re0en' +self = +url = 'http://127.0.0.1:45361/tmpgb38z8xi' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -16955,7 +16991,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -17042,7 +17078,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40829/tmpeu5re0en (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45361/tmpgb38z8xi (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -17063,8 +17099,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:40829/tmpeu5re0en' +self = +url = 'http://127.0.0.1:45361/tmpgb38z8xi' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -17087,12 +17123,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40829/tmpeu5re0en +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:45361/tmpgb38z8xi tuf/ngclient/fetcher.py:72: DownloadError _________________ TestFetcher.test_download_file_upper_length __________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -17169,15 +17205,15 @@ The above exception was the direct cause of the following exception: -self = -method = 'GET', url = 'http://127.0.0.1:40829/tmpeu5re0en', body = None +self = +method = 'GET', url = 'http://127.0.0.1:45361/tmpgb38z8xi', body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40829, path='/tmpeu5re0en', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=45361, path='/tmpgb38z8xi', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -17407,7 +17443,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -17433,7 +17469,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -17469,15 +17505,15 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 214, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -17557,10 +17593,10 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) -method = 'GET', url = 'http://127.0.0.1:40829/tmpeu5re0en', response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +method = 'GET', url = 'http://127.0.0.1:45361/tmpgb38z8xi', response = None +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -17654,14 +17690,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40829/tmpeu5re0en (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45361/tmpgb38z8xi (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:40829/tmpeu5re0en' +self = +url = 'http://127.0.0.1:45361/tmpgb38z8xi' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -17693,7 +17729,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -17780,7 +17816,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40829/tmpeu5re0en (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45361/tmpgb38z8xi (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -17801,8 +17837,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:40829/tmpeu5re0en' +self = +url = 'http://127.0.0.1:45361/tmpgb38z8xi' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -17825,12 +17861,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40829/tmpeu5re0en +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:45361/tmpgb38z8xi tuf/ngclient/fetcher.py:72: DownloadError ____________________________ TestFetcher.test_fetch ____________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -17907,15 +17943,15 @@ The above exception was the direct cause of the following exception: -self = -method = 'GET', url = 'http://127.0.0.1:40829/tmpeu5re0en', body = None +self = +method = 'GET', url = 'http://127.0.0.1:45361/tmpgb38z8xi', body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40829, path='/tmpeu5re0en', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=45361, path='/tmpgb38z8xi', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -18145,7 +18181,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -18171,7 +18207,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -18207,15 +18243,15 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 214, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -18295,10 +18331,10 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) -method = 'GET', url = 'http://127.0.0.1:40829/tmpeu5re0en', response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +method = 'GET', url = 'http://127.0.0.1:45361/tmpgb38z8xi', response = None +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -18392,14 +18428,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40829/tmpeu5re0en (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45361/tmpgb38z8xi (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:40829/tmpeu5re0en' +self = +url = 'http://127.0.0.1:45361/tmpgb38z8xi' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -18431,7 +18467,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -18518,7 +18554,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40829/tmpeu5re0en (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45361/tmpgb38z8xi (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -18533,8 +18569,8 @@ tests/test_fetcher_ng.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:40829/tmpeu5re0en' +self = +url = 'http://127.0.0.1:45361/tmpgb38z8xi' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -18557,12 +18593,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40829/tmpeu5re0en +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:45361/tmpgb38z8xi tuf/ngclient/fetcher.py:72: DownloadError _______________________ TestFetcher.test_fetch_in_chunks _______________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -18639,15 +18675,15 @@ The above exception was the direct cause of the following exception: -self = -method = 'GET', url = 'http://127.0.0.1:40829/tmpeu5re0en', body = None +self = +method = 'GET', url = 'http://127.0.0.1:45361/tmpgb38z8xi', body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40829, path='/tmpeu5re0en', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=45361, path='/tmpgb38z8xi', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -18877,7 +18913,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -18903,7 +18939,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -18939,15 +18975,15 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 214, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -19027,10 +19063,10 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) -method = 'GET', url = 'http://127.0.0.1:40829/tmpeu5re0en', response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +method = 'GET', url = 'http://127.0.0.1:45361/tmpgb38z8xi', response = None +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -19124,14 +19160,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40829/tmpeu5re0en (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45361/tmpgb38z8xi (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:40829/tmpeu5re0en' +self = +url = 'http://127.0.0.1:45361/tmpgb38z8xi' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -19163,7 +19199,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -19250,7 +19286,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40829/tmpeu5re0en (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45361/tmpgb38z8xi (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -19276,8 +19312,8 @@ tests/test_fetcher_ng.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:40829/tmpeu5re0en' +self = +url = 'http://127.0.0.1:45361/tmpgb38z8xi' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -19300,12 +19336,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40829/tmpeu5re0en +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:45361/tmpgb38z8xi tuf/ngclient/fetcher.py:72: DownloadError _________________________ TestFetcher.test_http_error __________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -19382,15 +19418,15 @@ The above exception was the direct cause of the following exception: -self = -method = 'GET', url = 'http://127.0.0.1:40829/non-existing-path', body = None +self = +method = 'GET', url = 'http://127.0.0.1:45361/non-existing-path', body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40829, path='/non-existing-path', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=45361, path='/non-existing-path', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -19620,7 +19656,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -19646,7 +19682,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -19682,15 +19718,15 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 214, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -19770,11 +19806,11 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) -method = 'GET', url = 'http://127.0.0.1:40829/non-existing-path' +method = 'GET', url = 'http://127.0.0.1:45361/non-existing-path' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -19868,7 +19904,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40829/non-existing-path (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45361/non-existing-path (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError @@ -19904,7 +19940,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -19991,7 +20027,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40829/non-existing-path (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45361/non-existing-path (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -20028,12 +20064,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40829/non-existing-path +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:45361/non-existing-path tuf/ngclient/fetcher.py:72: DownloadError ____________________ TestUpdater.test_external_targets_url _____________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -20110,9 +20146,9 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET' -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmp232cjzyx/repository/metadata/2.root.json' +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmp0arasl8k/repository/metadata/2.root.json' body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -20120,7 +20156,7 @@ timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=45767, path='/tmprks7y5kn/tmp232cjzyx/repository/metadata/2.root.json', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40717, path='/tmp4r1nlftx/tmp0arasl8k/repository/metadata/2.root.json', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -20350,7 +20386,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -20376,7 +20412,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -20412,15 +20448,15 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 214, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -20501,11 +20537,11 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET' -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmp232cjzyx/repository/metadata/2.root.json' +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmp0arasl8k/repository/metadata/2.root.json' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -20599,14 +20635,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45767/tmprks7y5kn/tmp232cjzyx/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40717/tmp4r1nlftx/tmp0arasl8k/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmp232cjzyx/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmp0arasl8k/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -20638,7 +20674,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -20725,7 +20761,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45767/tmprks7y5kn/tmp232cjzyx/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40717/tmp4r1nlftx/tmp0arasl8k/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -20752,8 +20788,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmp232cjzyx/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmp0arasl8k/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -20776,12 +20812,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:45767/tmprks7y5kn/tmp232cjzyx/repository/metadata/2.root.json +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40717/tmp4r1nlftx/tmp0arasl8k/repository/metadata/2.root.json tuf/ngclient/fetcher.py:72: DownloadError ____________ TestUpdater.test_implicit_refresh_with_only_local_root ____________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -20858,9 +20894,9 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET' -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmpi3icsgpx/repository/metadata/2.root.json' +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmpatv8ut3q/repository/metadata/2.root.json' body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -20868,7 +20904,7 @@ timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=45767, path='/tmprks7y5kn/tmpi3icsgpx/repository/metadata/2.root.json', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40717, path='/tmp4r1nlftx/tmpatv8ut3q/repository/metadata/2.root.json', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -21098,7 +21134,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -21124,7 +21160,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -21160,15 +21196,15 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 214, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -21249,11 +21285,11 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET' -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmpi3icsgpx/repository/metadata/2.root.json' +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmpatv8ut3q/repository/metadata/2.root.json' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -21347,14 +21383,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45767/tmprks7y5kn/tmpi3icsgpx/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40717/tmp4r1nlftx/tmpatv8ut3q/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmpi3icsgpx/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmpatv8ut3q/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -21386,7 +21422,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -21473,7 +21509,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45767/tmprks7y5kn/tmpi3icsgpx/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40717/tmp4r1nlftx/tmpatv8ut3q/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -21511,8 +21547,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmpi3icsgpx/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmpatv8ut3q/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -21535,12 +21571,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:45767/tmprks7y5kn/tmpi3icsgpx/repository/metadata/2.root.json +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40717/tmp4r1nlftx/tmpatv8ut3q/repository/metadata/2.root.json tuf/ngclient/fetcher.py:72: DownloadError ____________________ TestUpdater.test_length_hash_mismatch _____________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -21617,9 +21653,9 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET' -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmpdbxf4u7k/repository/metadata/2.root.json' +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmp4wwuln8q/repository/metadata/2.root.json' body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -21627,7 +21663,7 @@ timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=45767, path='/tmprks7y5kn/tmpdbxf4u7k/repository/metadata/2.root.json', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40717, path='/tmp4r1nlftx/tmp4wwuln8q/repository/metadata/2.root.json', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -21857,7 +21893,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -21883,7 +21919,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -21919,15 +21955,15 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 214, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -22008,11 +22044,11 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET' -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmpdbxf4u7k/repository/metadata/2.root.json' +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmp4wwuln8q/repository/metadata/2.root.json' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -22106,14 +22142,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45767/tmprks7y5kn/tmpdbxf4u7k/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40717/tmp4r1nlftx/tmp4wwuln8q/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmpdbxf4u7k/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmp4wwuln8q/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -22145,7 +22181,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -22232,7 +22268,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45767/tmprks7y5kn/tmpdbxf4u7k/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40717/tmp4r1nlftx/tmp4wwuln8q/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -22259,8 +22295,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmpdbxf4u7k/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmp4wwuln8q/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -22283,12 +22319,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:45767/tmprks7y5kn/tmpdbxf4u7k/repository/metadata/2.root.json +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40717/tmp4r1nlftx/tmp4wwuln8q/repository/metadata/2.root.json tuf/ngclient/fetcher.py:72: DownloadError _____________________ TestUpdater.test_missing_targetinfo ______________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -22365,9 +22401,9 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET' -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmp0tf2aecp/repository/metadata/2.root.json' +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmphs2lbq4k/repository/metadata/2.root.json' body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -22375,7 +22411,7 @@ timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=45767, path='/tmprks7y5kn/tmp0tf2aecp/repository/metadata/2.root.json', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40717, path='/tmp4r1nlftx/tmphs2lbq4k/repository/metadata/2.root.json', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -22605,7 +22641,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -22631,7 +22667,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -22667,15 +22703,15 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 214, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -22756,11 +22792,11 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET' -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmp0tf2aecp/repository/metadata/2.root.json' +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmphs2lbq4k/repository/metadata/2.root.json' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -22854,14 +22890,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45767/tmprks7y5kn/tmp0tf2aecp/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40717/tmp4r1nlftx/tmphs2lbq4k/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmp0tf2aecp/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmphs2lbq4k/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -22893,7 +22929,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -22980,7 +23016,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45767/tmprks7y5kn/tmp0tf2aecp/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40717/tmp4r1nlftx/tmphs2lbq4k/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -23007,8 +23043,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmp0tf2aecp/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmphs2lbq4k/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -23031,12 +23067,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:45767/tmprks7y5kn/tmp0tf2aecp/repository/metadata/2.root.json +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40717/tmp4r1nlftx/tmphs2lbq4k/repository/metadata/2.root.json tuf/ngclient/fetcher.py:72: DownloadError __________________ TestUpdater.test_non_existing_target_file ___________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -23113,9 +23149,9 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET' -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmpt3ejmqm9/repository/targets//non_existing_file.txt' +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmpzap5_8k3/repository/targets//non_existing_file.txt' body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -23123,7 +23159,7 @@ timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=45767, path='/tmprks7y5kn/tmpt3ejmqm9/repository/targets//non_existing_file.txt', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40717, path='/tmp4r1nlftx/tmpzap5_8k3/repository/targets//non_existing_file.txt', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -23353,7 +23389,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -23379,7 +23415,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -23415,15 +23451,15 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 214, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -23504,11 +23540,11 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET' -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmpt3ejmqm9/repository/targets//non_existing_file.txt' +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmpzap5_8k3/repository/targets//non_existing_file.txt' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -23602,7 +23638,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45767/tmprks7y5kn/tmpt3ejmqm9/repository/targets//non_existing_file.txt (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40717/tmp4r1nlftx/tmpzap5_8k3/repository/targets//non_existing_file.txt (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError @@ -23638,7 +23674,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -23725,7 +23761,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45767/tmprks7y5kn/tmpt3ejmqm9/repository/targets//non_existing_file.txt (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40717/tmp4r1nlftx/tmpzap5_8k3/repository/targets//non_existing_file.txt (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -23771,12 +23807,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:45767/tmprks7y5kn/tmpt3ejmqm9/repository/targets//non_existing_file.txt +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40717/tmp4r1nlftx/tmpzap5_8k3/repository/targets//non_existing_file.txt tuf/ngclient/fetcher.py:72: DownloadError ____________________ TestUpdater.test_refresh_and_download _____________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -23853,9 +23889,9 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET' -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmps8ivns85/repository/metadata/2.root.json' +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmpw4_tjrrt/repository/metadata/2.root.json' body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -23863,7 +23899,7 @@ timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=45767, path='/tmprks7y5kn/tmps8ivns85/repository/metadata/2.root.json', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40717, path='/tmp4r1nlftx/tmpw4_tjrrt/repository/metadata/2.root.json', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -24093,7 +24129,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -24119,7 +24155,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -24155,15 +24191,15 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 214, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -24244,11 +24280,11 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET' -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmps8ivns85/repository/metadata/2.root.json' +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmpw4_tjrrt/repository/metadata/2.root.json' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -24342,14 +24378,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45767/tmprks7y5kn/tmps8ivns85/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40717/tmp4r1nlftx/tmpw4_tjrrt/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmps8ivns85/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmpw4_tjrrt/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -24381,7 +24417,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -24468,7 +24504,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45767/tmprks7y5kn/tmps8ivns85/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40717/tmp4r1nlftx/tmpw4_tjrrt/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -24503,8 +24539,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmps8ivns85/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmpw4_tjrrt/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -24527,12 +24563,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:45767/tmprks7y5kn/tmps8ivns85/repository/metadata/2.root.json +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40717/tmp4r1nlftx/tmpw4_tjrrt/repository/metadata/2.root.json tuf/ngclient/fetcher.py:72: DownloadError ________________ TestUpdater.test_refresh_with_only_local_root _________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -24609,9 +24645,9 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET' -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmp8k7yyxmz/repository/metadata/2.root.json' +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmp3cn_oxlu/repository/metadata/2.root.json' body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -24619,7 +24655,7 @@ timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=45767, path='/tmprks7y5kn/tmp8k7yyxmz/repository/metadata/2.root.json', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40717, path='/tmp4r1nlftx/tmp3cn_oxlu/repository/metadata/2.root.json', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -24849,7 +24885,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -24875,7 +24911,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -24911,15 +24947,15 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 214, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -25000,11 +25036,11 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET' -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmp8k7yyxmz/repository/metadata/2.root.json' +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmp3cn_oxlu/repository/metadata/2.root.json' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -25098,14 +25134,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45767/tmprks7y5kn/tmp8k7yyxmz/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40717/tmp4r1nlftx/tmp3cn_oxlu/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmp8k7yyxmz/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmp3cn_oxlu/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -25137,7 +25173,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -25224,7 +25260,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45767/tmprks7y5kn/tmp8k7yyxmz/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40717/tmp4r1nlftx/tmp3cn_oxlu/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -25259,8 +25295,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmp8k7yyxmz/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmp3cn_oxlu/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -25283,12 +25319,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:45767/tmprks7y5kn/tmp8k7yyxmz/repository/metadata/2.root.json +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40717/tmp4r1nlftx/tmp3cn_oxlu/repository/metadata/2.root.json tuf/ngclient/fetcher.py:72: DownloadError ________________________ TestUpdater.test_updating_root ________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -25365,9 +25401,9 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET' -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmpkm9dynmn/repository/metadata/2.root.json' +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmpz6tade3j/repository/metadata/2.root.json' body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -25375,7 +25411,7 @@ timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=45767, path='/tmprks7y5kn/tmpkm9dynmn/repository/metadata/2.root.json', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40717, path='/tmp4r1nlftx/tmpz6tade3j/repository/metadata/2.root.json', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -25605,7 +25641,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -25631,7 +25667,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -25667,15 +25703,15 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 214, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -25756,11 +25792,11 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET' -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmpkm9dynmn/repository/metadata/2.root.json' +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmpz6tade3j/repository/metadata/2.root.json' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -25854,14 +25890,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45767/tmprks7y5kn/tmpkm9dynmn/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40717/tmp4r1nlftx/tmpz6tade3j/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmpkm9dynmn/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmpz6tade3j/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -25893,7 +25929,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -25980,7 +26016,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45767/tmprks7y5kn/tmpkm9dynmn/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40717/tmp4r1nlftx/tmpz6tade3j/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -26009,8 +26045,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmpkm9dynmn/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmpz6tade3j/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -26033,12 +26069,12 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:45767/tmprks7y5kn/tmpkm9dynmn/repository/metadata/2.root.json +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40717/tmp4r1nlftx/tmpz6tade3j/repository/metadata/2.root.json tuf/ngclient/fetcher.py:72: DownloadError _________________________ TestUpdater.test_user_agent __________________________ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -26115,9 +26151,9 @@ The above exception was the direct cause of the following exception: -self = +self = method = 'GET' -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmpelcf92va/repository/metadata/2.root.json' +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmp9k_x0ci6/repository/metadata/2.root.json' body = None headers = {'User-Agent': 'python-tuf/5.1.0 python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) @@ -26125,7 +26161,7 @@ timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = False, chunked = False, body_pos = None, preload_content = False decode_content = False, response_kw = {} -parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=45767, path='/tmprks7y5kn/tmpelcf92va/repository/metadata/2.root.json', query=None, fragment=None) +parsed_url = Url(scheme='http', auth=None, host='127.0.0.1', port=40717, path='/tmp4r1nlftx/tmp9k_x0ci6/repository/metadata/2.root.json', query=None, fragment=None) destination_scheme = 'http', conn = None, release_this_conn = True http_tunnel_required = False, err = None, clean_exit = False @@ -26355,7 +26391,7 @@ self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. @@ -26381,7 +26417,7 @@ > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e -E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused /usr/lib/python3/dist-packages/urllib3/connection.py:214: NewConnectionError @@ -26417,15 +26453,15 @@ ^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 214, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: -urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) The above exception was the direct cause of the following exception: -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -26506,11 +26542,11 @@ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET' -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmpelcf92va/repository/metadata/2.root.json' +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmp9k_x0ci6/repository/metadata/2.root.json' response = None -error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) -_pool = -_stacktrace = +error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) +_pool = +_stacktrace = def increment( self, @@ -26604,14 +26640,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='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45767/tmprks7y5kn/tmpelcf92va/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40717/tmp4r1nlftx/tmp9k_x0ci6/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/urllib3/util/retry.py:519: MaxRetryError During handling of the above exception, another exception occurred: -self = -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmpelcf92va/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmp9k_x0ci6/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -26643,7 +26679,7 @@ r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = +self = request = , stream = True timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict({'no': 'localhost', 'https': 'https://127.0.0.1:9/', 'http': 'http://127.0.0.1:9/'}) @@ -26730,7 +26766,7 @@ if isinstance(e.reason, _ProxyError): > raise ProxyError(e, request=request) -E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:45767/tmprks7y5kn/tmpelcf92va/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) +E requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://127.0.0.1:40717/tmp4r1nlftx/tmp9k_x0ci6/repository/metadata/2.root.json (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError @@ -26758,8 +26794,8 @@ chunks = self.fetch(url) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = -url = 'http://127.0.0.1:45767/tmprks7y5kn/tmpelcf92va/repository/metadata/2.root.json' +self = +url = 'http://127.0.0.1:40717/tmp4r1nlftx/tmp9k_x0ci6/repository/metadata/2.root.json' def fetch(self, url: str) -> Iterator[bytes]: """Fetch the contents of HTTP/HTTPS ``url`` from a remote server. @@ -26782,7 +26818,7 @@ raise e except Exception as e: > raise exceptions.DownloadError(f"Failed to download {url}") from e -E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:45767/tmprks7y5kn/tmpelcf92va/repository/metadata/2.root.json +E tuf.api.exceptions.DownloadError: Failed to download http://127.0.0.1:40717/tmp4r1nlftx/tmp9k_x0ci6/repository/metadata/2.root.json tuf/ngclient/fetcher.py:72: DownloadError ________________________ TestServerProcess.test_cleanup ________________________ @@ -26805,7 +26841,7 @@ self._wait_for_port(timeout) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -self = , timeout = 10 +self = , timeout = 10 def _wait_for_port(self, timeout: int) -> None: """ @@ -26891,7 +26927,7 @@ FAILED tests/test_updater_ng.py::TestUpdater::test_updating_root - tuf.api.ex... FAILED tests/test_updater_ng.py::TestUpdater::test_user_agent - tuf.api.excep... FAILED tests/test_utils.py::TestServerProcess::test_cleanup - tests.utils.Tes... -================== 21 failed, 163 passed, 5 warnings in 7.24s ================== +================= 21 failed, 163 passed, 5 warnings in 13.96s ================== E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-tuf-5.1.0/.pybuild/cpython3_3.12/build; python3.12 -m pytest --ignore tests/test_metadata_generation.py dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.13 3.12" returned exit code 13 make[1]: [debian/rules:10: override_dh_auto_test] Error 25 (ignored) @@ -26924,12 +26960,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/64080/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/64080/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/18317 and its subdirectories -I: Current time: Mon Jan 19 18:52:36 -12 2026 -I: pbuilder-time-stamp: 1768891956 +I: removing directory /srv/workspace/pbuilder/64080 and its subdirectories +I: Current time: Wed Dec 18 14:31:27 +14 2024 +I: pbuilder-time-stamp: 1734481887