Thu Jan 23 23:42:52 UTC 2025 I: starting to build python-urllib3/trixie/armhf on jenkins on '2025-01-23 23:42' Thu Jan 23 23:42:52 UTC 2025 I: The jenkins build log is/was available at https://jenkins.debian.net/userContent/reproducible/debian/build_service/armhf_12/11978/console.log Thu Jan 23 23:42:52 UTC 2025 I: Downloading source for trixie/python-urllib3=2.3.0-1 --2025-01-23 23:42:52-- http://deb.debian.org/debian/pool/main/p/python-urllib3/python-urllib3_2.3.0-1.dsc Connecting to 46.16.76.132:3128... connected. Proxy request sent, awaiting response... 200 OK Length: 2869 (2.8K) [text/prs.lines.tag] Saving to: ‘python-urllib3_2.3.0-1.dsc’ 0K .. 100% 484M=0s 2025-01-23 23:42:52 (484 MB/s) - ‘python-urllib3_2.3.0-1.dsc’ saved [2869/2869] Thu Jan 23 23:42:53 UTC 2025 I: python-urllib3_2.3.0-1.dsc -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 3.0 (quilt) Source: python-urllib3 Binary: python3-urllib3 Architecture: all Version: 2.3.0-1 Maintainer: Debian Python Team Uploaders: Daniele Tricoli Homepage: https://urllib3.readthedocs.org Standards-Version: 4.6.2 Vcs-Browser: https://salsa.debian.org/python-team/packages/python-urllib3 Vcs-Git: https://salsa.debian.org/python-team/packages/python-urllib3.git Testsuite: autopkgtest Testsuite-Triggers: python3-all, python3-brotli, python3-coverage, python3-cryptography, python3-h2, python3-httpx, python3-idna, python3-openssl, python3-pytest, python3-pytest-timeout, python3-quart, python3-quart-trio, python3-socks, python3-trio, python3-trustme Build-Depends: debhelper-compat (= 13), dh-sequence-python3, pybuild-plugin-pyproject, python3-all, python3-brotli , python3-coverage , python3-cryptography , python3-hatch-vcs, python3-hatchling, python3-h2, python3-httpx , python3-idna , python3-openssl , python3-pytest , python3-pytest-timeout , python3-quart , python3-quart-trio , python3-socks , python3-trio , python3-trustme Package-List: python3-urllib3 deb python optional arch=all Checksums-Sha1: aa97066e8f8f5c46679c94cce3cf1f83415daa7a 307268 python-urllib3_2.3.0.orig.tar.gz 743d8b9915a2b07d11ba66be911c4a4b821fe8c4 37868 python-urllib3_2.3.0-1.debian.tar.xz Checksums-Sha256: f8c5449b3cf0861679ce7e0503c7b44b5ec981bec0d1d3795a07f1ba96f0204d 307268 python-urllib3_2.3.0.orig.tar.gz c1d8840746d30690275b538815118825888429dea69f98e9fc962fcaae5261ef 37868 python-urllib3_2.3.0-1.debian.tar.xz Files: 6388afd062cf2e1ef27843738629dbc1 307268 python-urllib3_2.3.0.orig.tar.gz 41eba6f5e4243298966288e53697d6c0 37868 python-urllib3_2.3.0-1.debian.tar.xz Dgit: 480496d6bd228ed71130681ed61323d86e4c6470 debian archive/debian/2.3.0-1 https://git.dgit.debian.org/python-urllib3 -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAmeKYVQACgkQOTWH2X2G UAueEQ//WLOpixDQNU2Wyl6v9l/53ggKZcTRx7E0pWoJYgg/jNT1dNWcDaSN+i29 ARD3Ddo62Al2XIPRnOwcIjP1/uO0s/bCMjNm4MdUDmoX2DtvimeF0Ekhzyp/3gW9 BXao7JiHQR+06/jQVhRXm/HXnuFfwRrK4JxZRTqnF0dGbmZEVDuG7AFNhv8bI9Bi xNMsQdGZMefLX7OqfA2qfmomURcIiSrcVYRa5kN0xAo1A+RGuq0MoTiJfaU9KMxl y8MM2j8TRMrGVq2u9ct2oW8Ai17lhVl7S2UDFpZJXtLbs+tLdaSYFFQOQAS6nl7e /zF0qZBSXfHPGQbWNRGs7VIwVRhLr5BAuSYqffz0yj8xuZIByBfniMSzZnqeBuOJ 1uzGcSVkcFKMmFznPWvxVCSOJ1gi4SQH7IX5l8RQEkA9KHbblrbLDt+gUZMMF7eM X7/eJZOKv+3ULITxzK71Zs9ckjR69kQ+7UM2Qk+7MIKSJKABfDfFBZCj1qIG6rQu 8vKHWR/q243C9yzdOQxpF1kpRnpNMvJ+Q1zmJhdo6zc9sO6GBv9aRc8tZL7ozSfB ZGmk4Ad04cBaJt7JcpQlpZRcAdOEfnfWTLr78JICEgSKXsdUOdi+qMQmPmYyAquS rU3haP9hwIr+pC6NXq4CWQxibdqAdH+blbRwXBGMLcAdXIsSHUA= =3FSI -----END PGP SIGNATURE----- Thu Jan 23 23:42:53 UTC 2025 I: Checking whether the package is not for us Thu Jan 23 23:42:53 UTC 2025 I: Starting 1st build on remote node virt64a-armhf-rb.debian.net. Thu Jan 23 23:42:53 UTC 2025 I: Preparing to do remote build '1' on virt64a-armhf-rb.debian.net. Thu Jan 23 23:57:58 UTC 2025 I: Deleting $TMPDIR on virt64a-armhf-rb.debian.net. I: pbuilder: network access will be disabled during build I: Current time: Thu Jan 23 11:42:59 -12 2025 I: pbuilder-time-stamp: 1737675779 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration W: --override-config is not set; not updating apt.conf Read the manpage for details. I: mounting /proc filesystem I: mounting /sys filesystem I: creating /{dev,run}/shm I: mounting /dev/pts filesystem I: redirecting /dev/ptmx to /dev/pts/ptmx I: policy-rc.d already exists I: Copying source file I: copying [python-urllib3_2.3.0-1.dsc] I: copying [./python-urllib3_2.3.0.orig.tar.gz] I: copying [./python-urllib3_2.3.0-1.debian.tar.xz] I: Extracting source dpkg-source: warning: cannot verify inline signature for ./python-urllib3_2.3.0-1.dsc: unsupported subcommand dpkg-source: info: extracting python-urllib3 in python-urllib3-2.3.0 dpkg-source: info: unpacking python-urllib3_2.3.0.orig.tar.gz dpkg-source: info: unpacking python-urllib3_2.3.0-1.debian.tar.xz dpkg-source: info: using patch list from debian/patches/series dpkg-source: info: applying test_http2_probe_blocked_per_thread-requires_network.patch dpkg-source: info: applying openssl-3.4.0.patch I: Not using root during the build. I: Installing the build-deps I: user script /srv/workspace/pbuilder/19699/tmp/hooks/D02_print_environment starting I: set BUILDDIR='/build/reproducible-path' BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' BUILDUSERNAME='pbuilder1' BUILD_ARCH='armhf' DEBIAN_FRONTEND='noninteractive' DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 ' DISTRIBUTION='trixie' HOME='/root' HOST_ARCH='armhf' IFS=' ' INVOCATION_ID='ba01a0dc3acc4dc39ed24673bdaceb90' LANG='C' LANGUAGE='en_US:en' LC_ALL='C' MAIL='/var/mail/root' OPTIND='1' PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' PBCURRENTCOMMANDLINEOPERATION='build' PBUILDER_OPERATION='build' PBUILDER_PKGDATADIR='/usr/share/pbuilder' PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' PBUILDER_SYSCONFDIR='/etc' PPID='19699' PS1='# ' PS2='> ' 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.n0VYUtZq/pbuilderrc_taE7 --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.n0VYUtZq/b1 --logfile b1/build.log python-urllib3_2.3.0-1.dsc' SUDO_GID='114' SUDO_UID='108' SUDO_USER='jenkins' TERM='unknown' TZ='/usr/share/zoneinfo/Etc/GMT+12' USER='root' _='/usr/bin/systemd-run' http_proxy='http://10.0.0.15:3142/' I: uname -a Linux virt64a 6.1.0-30-arm64 #1 SMP Debian 6.1.124-1 (2025-01-12) aarch64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin I: user script /srv/workspace/pbuilder/19699/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy Version: 0.invalid.0 Architecture: armhf Maintainer: Debian Pbuilder Team Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder This package was created automatically by pbuilder to satisfy the build-dependencies of the package being currently built. Depends: debhelper-compat (= 13), dh-sequence-python3, pybuild-plugin-pyproject, python3-all, python3-brotli, python3-coverage, python3-cryptography, python3-hatch-vcs, python3-hatchling, python3-h2, python3-httpx, python3-idna, python3-openssl, python3-pytest, python3-pytest-timeout, python3-quart, python3-quart-trio, python3-socks, python3-trio, python3-trustme dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in '/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'. Selecting previously unselected package pbuilder-satisfydepends-dummy. (Reading database ... 19569 files and directories currently installed.) Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ... Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ... dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring anyway as you requested: pbuilder-satisfydepends-dummy depends on debhelper-compat (= 13); however: Package debhelper-compat is not installed. pbuilder-satisfydepends-dummy depends on dh-sequence-python3; however: Package dh-sequence-python3 is not installed. pbuilder-satisfydepends-dummy depends on pybuild-plugin-pyproject; however: Package pybuild-plugin-pyproject is not installed. pbuilder-satisfydepends-dummy depends on python3-all; however: Package python3-all is not installed. pbuilder-satisfydepends-dummy depends on python3-brotli; however: Package python3-brotli is not installed. pbuilder-satisfydepends-dummy depends on python3-coverage; however: Package python3-coverage is not installed. pbuilder-satisfydepends-dummy depends on python3-cryptography; however: Package python3-cryptography is not installed. pbuilder-satisfydepends-dummy depends on python3-hatch-vcs; however: Package python3-hatch-vcs is not installed. pbuilder-satisfydepends-dummy depends on python3-hatchling; however: Package python3-hatchling is not installed. pbuilder-satisfydepends-dummy depends on python3-h2; however: Package python3-h2 is not installed. pbuilder-satisfydepends-dummy depends on python3-httpx; however: Package python3-httpx is not installed. pbuilder-satisfydepends-dummy depends on python3-idna; however: Package python3-idna is not installed. pbuilder-satisfydepends-dummy depends on python3-openssl; however: Package python3-openssl is not installed. pbuilder-satisfydepends-dummy depends on python3-pytest; however: Package python3-pytest is not installed. pbuilder-satisfydepends-dummy depends on python3-pytest-timeout; however: Package python3-pytest-timeout is not installed. pbuilder-satisfydepends-dummy depends on python3-quart; however: Package python3-quart is not installed. pbuilder-satisfydepends-dummy depends on python3-quart-trio; however: Package python3-quart-trio is not installed. pbuilder-satisfydepends-dummy depends on python3-socks; however: Package python3-socks is not installed. pbuilder-satisfydepends-dummy depends on python3-trio; however: Package python3-trio is not installed. pbuilder-satisfydepends-dummy depends on python3-trustme; however: Package python3-trustme is not installed. Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ... Reading package lists... Building dependency tree... Reading state information... Initializing package states... Writing extended state information... Building tag database... pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) The following NEW packages will be installed: autoconf{a} automake{a} autopoint{a} autotools-dev{a} bsdextrautils{a} ca-certificates{a} debhelper{a} dh-autoreconf{a} dh-python{a} dh-strip-nondeterminism{a} dwz{a} file{a} gettext{a} gettext-base{a} groff-base{a} intltool-debian{a} libarchive-zip-perl{a} libcom-err2{a} libdebhelper-perl{a} libelf1t64{a} libexpat1{a} libffi8{a} libfile-stripnondeterminism-perl{a} libgssapi-krb5-2{a} libicu72{a} libk5crypto3{a} libkeyutils1{a} libkrb5-3{a} libkrb5support0{a} libmagic-mgc{a} libmagic1t64{a} libnsl2{a} libpipeline1{a} libpython3-stdlib{a} libpython3.12-minimal{a} libpython3.12-stdlib{a} libpython3.13-minimal{a} libpython3.13-stdlib{a} libreadline8t64{a} libtirpc-common{a} libtirpc3t64{a} libtool{a} libuchardet0{a} libunistring5{a} libxml2{a} m4{a} man-db{a} media-types{a} netbase{a} openssl{a} po-debconf{a} pybuild-plugin-pyproject{a} python3{a} python3-aiofiles{a} python3-all{a} python3-anyio{a} python3-attr{a} python3-autocommand{a} python3-bcrypt{a} python3-blinker{a} python3-brotli{a} python3-build{a} python3-certifi{a} python3-cffi-backend{a} python3-click{a} python3-coverage{a} python3-cryptography{a} python3-flask{a} python3-h11{a} python3-h2{a} python3-hatch-vcs{a} python3-hatchling{a} python3-hpack{a} python3-httpcore{a} python3-httpx{a} python3-hypercorn{a} python3-hyperframe{a} python3-idna{a} python3-inflect{a} python3-iniconfig{a} python3-installer{a} python3-itsdangerous{a} python3-jaraco.context{a} python3-jaraco.functools{a} python3-jaraco.text{a} python3-jinja2{a} python3-markdown-it{a} python3-markupsafe{a} python3-mdurl{a} python3-minimal{a} python3-more-itertools{a} python3-openssl{a} python3-outcome{a} python3-packaging{a} python3-pathspec{a} python3-pkg-resources{a} python3-pluggy{a} python3-priority{a} python3-pygments{a} python3-pyproject-hooks{a} python3-pytest{a} python3-pytest-timeout{a} python3-quart{a} python3-quart-trio{a} python3-rich{a} python3-setuptools{a} python3-setuptools-scm{a} python3-sniffio{a} python3-socks{a} python3-sortedcontainers{a} python3-toml{a} python3-trio{a} python3-trove-classifiers{a} python3-trustme{a} python3-typeguard{a} python3-typing-extensions{a} python3-werkzeug{a} python3-wheel{a} python3-wsproto{a} python3-zipp{a} python3.12{a} python3.12-minimal{a} python3.13{a} python3.13-minimal{a} readline-common{a} sensible-utils{a} tzdata{a} The following packages are RECOMMENDED but will NOT be installed: curl krb5-locales libarchive-cpio-perl libltdl-dev libmail-sendmail-perl lynx python3-asgiref python3-babel python3-dotenv python3-pyinotify wget 0 packages upgraded, 127 newly installed, 0 to remove and 0 not upgraded. Need to get 39.2 MB of archives. After unpacking 155 MB will be used. Writing extended state information... Get: 1 http://deb.debian.org/debian trixie/main armhf libpython3.12-minimal armhf 3.12.8-5 [803 kB] Get: 2 http://deb.debian.org/debian trixie/main armhf libexpat1 armhf 2.6.4-1 [83.5 kB] Get: 3 http://deb.debian.org/debian trixie/main armhf python3.12-minimal armhf 3.12.8-5 [1812 kB] Get: 4 http://deb.debian.org/debian trixie/main armhf python3-minimal armhf 3.12.8-1 [26.9 kB] Get: 5 http://deb.debian.org/debian trixie/main armhf media-types all 10.1.0 [26.9 kB] Get: 6 http://deb.debian.org/debian trixie/main armhf netbase all 6.4 [12.8 kB] Get: 7 http://deb.debian.org/debian trixie/main armhf tzdata all 2024b-6 [257 kB] Get: 8 http://deb.debian.org/debian trixie/main armhf libffi8 armhf 3.4.6-1 [20.0 kB] Get: 9 http://deb.debian.org/debian trixie/main armhf libkrb5support0 armhf 1.21.3-3 [30.0 kB] Get: 10 http://deb.debian.org/debian trixie/main armhf libcom-err2 armhf 1.47.2-1 [23.3 kB] Get: 11 http://deb.debian.org/debian trixie/main armhf libk5crypto3 armhf 1.21.3-3 [75.8 kB] Get: 12 http://deb.debian.org/debian trixie/main armhf libkeyutils1 armhf 1.6.3-4 [8096 B] Get: 13 http://deb.debian.org/debian trixie/main armhf libkrb5-3 armhf 1.21.3-3 [283 kB] Get: 14 http://deb.debian.org/debian trixie/main armhf libgssapi-krb5-2 armhf 1.21.3-3 [114 kB] Get: 15 http://deb.debian.org/debian trixie/main armhf libtirpc-common all 1.3.4+ds-1.3 [10.9 kB] Get: 16 http://deb.debian.org/debian trixie/main armhf libtirpc3t64 armhf 1.3.4+ds-1.3+b1 [71.3 kB] Get: 17 http://deb.debian.org/debian trixie/main armhf libnsl2 armhf 1.3.0-3+b3 [35.0 kB] Get: 18 http://deb.debian.org/debian trixie/main armhf readline-common all 8.2-6 [69.4 kB] Get: 19 http://deb.debian.org/debian trixie/main armhf libreadline8t64 armhf 8.2-6 [146 kB] Get: 20 http://deb.debian.org/debian trixie/main armhf libpython3.12-stdlib armhf 3.12.8-5 [1832 kB] Get: 21 http://deb.debian.org/debian trixie/main armhf python3.12 armhf 3.12.8-5 [677 kB] Get: 22 http://deb.debian.org/debian trixie/main armhf libpython3-stdlib armhf 3.12.8-1 [9792 B] Get: 23 http://deb.debian.org/debian trixie/main armhf python3 armhf 3.12.8-1 [27.9 kB] Get: 24 http://deb.debian.org/debian trixie/main armhf libpython3.13-minimal armhf 3.13.1-3 [844 kB] Get: 25 http://deb.debian.org/debian trixie/main armhf python3.13-minimal armhf 3.13.1-3 [1840 kB] Get: 26 http://deb.debian.org/debian trixie/main armhf sensible-utils all 0.0.24 [24.8 kB] Get: 27 http://deb.debian.org/debian trixie/main armhf openssl armhf 3.4.0-2 [1388 kB] Get: 28 http://deb.debian.org/debian trixie/main armhf ca-certificates all 20241223 [164 kB] Get: 29 http://deb.debian.org/debian trixie/main armhf libmagic-mgc armhf 1:5.45-3+b1 [314 kB] Get: 30 http://deb.debian.org/debian trixie/main armhf libmagic1t64 armhf 1:5.45-3+b1 [98.5 kB] Get: 31 http://deb.debian.org/debian trixie/main armhf file armhf 1:5.45-3+b1 [42.3 kB] Get: 32 http://deb.debian.org/debian trixie/main armhf gettext-base armhf 0.22.5-4 [196 kB] Get: 33 http://deb.debian.org/debian trixie/main armhf libuchardet0 armhf 0.0.8-1+b2 [65.6 kB] Get: 34 http://deb.debian.org/debian trixie/main armhf groff-base armhf 1.23.0-7 [1095 kB] Get: 35 http://deb.debian.org/debian trixie/main armhf bsdextrautils armhf 2.40.4-1 [84.6 kB] Get: 36 http://deb.debian.org/debian trixie/main armhf libpipeline1 armhf 1.5.8-1 [35.0 kB] Get: 37 http://deb.debian.org/debian trixie/main armhf man-db armhf 2.13.0-1 [1382 kB] Get: 38 http://deb.debian.org/debian trixie/main armhf m4 armhf 1.4.19-5 [272 kB] Get: 39 http://deb.debian.org/debian trixie/main armhf autoconf all 2.72-3 [493 kB] Get: 40 http://deb.debian.org/debian trixie/main armhf autotools-dev all 20220109.1 [51.6 kB] Get: 41 http://deb.debian.org/debian trixie/main armhf automake all 1:1.16.5-1.3 [823 kB] Get: 42 http://deb.debian.org/debian trixie/main armhf autopoint all 0.22.5-4 [723 kB] Get: 43 http://deb.debian.org/debian trixie/main armhf libdebhelper-perl all 13.23 [90.6 kB] Get: 44 http://deb.debian.org/debian trixie/main armhf libtool all 2.5.4-2 [539 kB] Get: 45 http://deb.debian.org/debian trixie/main armhf dh-autoreconf all 20 [17.1 kB] Get: 46 http://deb.debian.org/debian trixie/main armhf libarchive-zip-perl all 1.68-1 [104 kB] Get: 47 http://deb.debian.org/debian trixie/main armhf libfile-stripnondeterminism-perl all 1.14.0-1 [19.5 kB] Get: 48 http://deb.debian.org/debian trixie/main armhf dh-strip-nondeterminism all 1.14.0-1 [8448 B] Get: 49 http://deb.debian.org/debian trixie/main armhf libelf1t64 armhf 0.192-4 [184 kB] Get: 50 http://deb.debian.org/debian trixie/main armhf dwz armhf 0.15-1+b2 [106 kB] Get: 51 http://deb.debian.org/debian trixie/main armhf libunistring5 armhf 1.3-1 [444 kB] Get: 52 http://deb.debian.org/debian trixie/main armhf libicu72 armhf 72.1-6 [9086 kB] Get: 53 http://deb.debian.org/debian trixie/main armhf libxml2 armhf 2.12.7+dfsg+really2.9.14-0.2+b1 [605 kB] Get: 54 http://deb.debian.org/debian trixie/main armhf gettext armhf 0.22.5-4 [1489 kB] Get: 55 http://deb.debian.org/debian trixie/main armhf intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 56 http://deb.debian.org/debian trixie/main armhf po-debconf all 1.0.21+nmu1 [248 kB] Get: 57 http://deb.debian.org/debian trixie/main armhf debhelper all 13.23 [919 kB] Get: 58 http://deb.debian.org/debian trixie/main armhf python3-autocommand all 2.2.2-3 [13.6 kB] Get: 59 http://deb.debian.org/debian trixie/main armhf python3-more-itertools all 10.6.0-1 [65.3 kB] Get: 60 http://deb.debian.org/debian trixie/main armhf python3-typing-extensions all 4.12.2-2 [73.0 kB] Get: 61 http://deb.debian.org/debian trixie/main armhf python3-typeguard all 4.4.1-1 [37.0 kB] Get: 62 http://deb.debian.org/debian trixie/main armhf python3-inflect all 7.3.1-2 [32.4 kB] Get: 63 http://deb.debian.org/debian trixie/main armhf python3-jaraco.context all 6.0.0-1 [7984 B] Get: 64 http://deb.debian.org/debian trixie/main armhf python3-jaraco.functools all 4.1.0-1 [12.0 kB] Get: 65 http://deb.debian.org/debian trixie/main armhf python3-pkg-resources all 75.6.0-1 [222 kB] Get: 66 http://deb.debian.org/debian trixie/main armhf python3-jaraco.text all 4.0.0-1 [11.4 kB] Get: 67 http://deb.debian.org/debian trixie/main armhf python3-zipp all 3.21.0-1 [10.6 kB] Get: 68 http://deb.debian.org/debian trixie/main armhf python3-setuptools all 75.6.0-1 [720 kB] Get: 69 http://deb.debian.org/debian trixie/main armhf dh-python all 6.20250108 [113 kB] Get: 70 http://deb.debian.org/debian trixie/main armhf libpython3.13-stdlib armhf 3.13.1-3 [1850 kB] Get: 71 http://deb.debian.org/debian trixie/main armhf python3-packaging all 24.2-1 [55.3 kB] Get: 72 http://deb.debian.org/debian trixie/main armhf python3-pyproject-hooks all 1.2.0-1 [11.7 kB] Get: 73 http://deb.debian.org/debian trixie/main armhf python3-toml all 0.10.2-1 [16.2 kB] Get: 74 http://deb.debian.org/debian trixie/main armhf python3-wheel all 0.45.1-1 [56.7 kB] Get: 75 http://deb.debian.org/debian trixie/main armhf python3-build all 1.2.2-1 [36.0 kB] Get: 76 http://deb.debian.org/debian trixie/main armhf python3-installer all 0.7.0+dfsg1-3 [18.6 kB] Get: 77 http://deb.debian.org/debian trixie/main armhf pybuild-plugin-pyproject all 6.20250108 [11.6 kB] Get: 78 http://deb.debian.org/debian trixie/main armhf python3-aiofiles all 24.1.0-2 [10.7 kB] Get: 79 http://deb.debian.org/debian trixie/main armhf python3.13 armhf 3.13.1-3 [740 kB] Get: 80 http://deb.debian.org/debian trixie/main armhf python3-all armhf 3.12.8-1 [1048 B] Get: 81 http://deb.debian.org/debian trixie/main armhf python3-idna all 3.8-2 [41.6 kB] Get: 82 http://deb.debian.org/debian trixie/main armhf python3-sniffio all 1.3.1-1 [7120 B] Get: 83 http://deb.debian.org/debian trixie/main armhf python3-anyio all 4.7.0-1 [61.8 kB] Get: 84 http://deb.debian.org/debian trixie/main armhf python3-attr all 24.3.0-1 [68.8 kB] Get: 85 http://deb.debian.org/debian trixie/main armhf python3-bcrypt armhf 4.2.0-2.1 [214 kB] Get: 86 http://deb.debian.org/debian trixie/main armhf python3-blinker all 1.9.0-1 [12.6 kB] Get: 87 http://deb.debian.org/debian trixie/main armhf python3-brotli armhf 1.1.0-2+b6 [302 kB] Get: 88 http://deb.debian.org/debian trixie/main armhf python3-certifi all 2024.12.14+ds-1 [9624 B] Get: 89 http://deb.debian.org/debian trixie/main armhf python3-cffi-backend armhf 1.17.1-2+b1 [83.7 kB] Get: 90 http://deb.debian.org/debian trixie/main armhf python3-click all 8.1.8-1 [95.2 kB] Get: 91 http://deb.debian.org/debian trixie/main armhf python3-coverage armhf 7.6.0+dfsg1-2+b1 [176 kB] Get: 92 http://deb.debian.org/debian trixie/main armhf python3-cryptography armhf 43.0.0-1 [827 kB] Get: 93 http://deb.debian.org/debian trixie/main armhf python3-itsdangerous all 2.2.0-2 [18.1 kB] Get: 94 http://deb.debian.org/debian trixie/main armhf python3-markupsafe armhf 2.1.5-1+b2 [13.4 kB] Get: 95 http://deb.debian.org/debian trixie/main armhf python3-jinja2 all 3.1.3-2 [120 kB] Get: 96 http://deb.debian.org/debian trixie/main armhf python3-werkzeug all 3.1.3-2 [207 kB] Get: 97 http://deb.debian.org/debian trixie/main armhf python3-flask all 3.1.0-2 [106 kB] Get: 98 http://deb.debian.org/debian trixie/main armhf python3-h11 all 0.14.0-1 [50.1 kB] Get: 99 http://deb.debian.org/debian trixie/main armhf python3-hpack all 4.0.0-2 [25.0 kB] Get: 100 http://deb.debian.org/debian trixie/main armhf python3-hyperframe all 6.0.0-1 [14.5 kB] Get: 101 http://deb.debian.org/debian trixie/main armhf python3-h2 all 4.1.0-4 [80.8 kB] Get: 102 http://deb.debian.org/debian trixie/main armhf python3-pathspec all 0.12.1-1 [28.1 kB] Get: 103 http://deb.debian.org/debian trixie/main armhf python3-pluggy all 1.5.0-1 [26.9 kB] Get: 104 http://deb.debian.org/debian trixie/main armhf python3-trove-classifiers all 2024.9.12-1 [10.2 kB] Get: 105 http://deb.debian.org/debian trixie/main armhf python3-hatchling all 1.27.0-1 [47.0 kB] Get: 106 http://deb.debian.org/debian trixie/main armhf python3-setuptools-scm all 8.1.0-1 [40.5 kB] Get: 107 http://deb.debian.org/debian trixie/main armhf python3-hatch-vcs all 0.4.0-1 [8336 B] Get: 108 http://deb.debian.org/debian trixie/main armhf python3-httpcore all 1.0.7-1 [44.7 kB] Get: 109 http://deb.debian.org/debian trixie/main armhf python3-pygments all 2.18.0+dfsg-2 [836 kB] Get: 110 http://deb.debian.org/debian trixie/main armhf python3-mdurl all 0.1.2-1 [9444 B] Get: 111 http://deb.debian.org/debian trixie/main armhf python3-markdown-it all 3.0.0-2 [62.5 kB] Get: 112 http://deb.debian.org/debian trixie/main armhf python3-rich all 13.9.4-1 [203 kB] Get: 113 http://deb.debian.org/debian trixie/main armhf python3-httpx all 0.27.2-1 [77.6 kB] Get: 114 http://deb.debian.org/debian trixie/main armhf python3-priority all 2.0.0-1 [13.3 kB] Get: 115 http://deb.debian.org/debian trixie/main armhf python3-wsproto all 1.2.0-1 [25.4 kB] Get: 116 http://deb.debian.org/debian trixie/main armhf python3-hypercorn all 0.17.3-2 [49.2 kB] Get: 117 http://deb.debian.org/debian trixie/main armhf python3-iniconfig all 1.1.1-2 [6396 B] Get: 118 http://deb.debian.org/debian trixie/main armhf python3-openssl all 25.0.0-1 [52.1 kB] Get: 119 http://deb.debian.org/debian trixie/main armhf python3-outcome all 1.2.0-1.1 [5956 B] Get: 120 http://deb.debian.org/debian trixie/main armhf python3-pytest all 8.3.4-1 [250 kB] Get: 121 http://deb.debian.org/debian trixie/main armhf python3-pytest-timeout all 2.3.1-1 [21.9 kB] Get: 122 http://deb.debian.org/debian trixie/main armhf python3-quart all 0.20.0-1 [65.8 kB] Get: 123 http://deb.debian.org/debian trixie/main armhf python3-sortedcontainers all 2.4.0-2 [31.9 kB] Get: 124 http://deb.debian.org/debian trixie/main armhf python3-trio all 0.27.0-1 [317 kB] Get: 125 http://deb.debian.org/debian trixie/main armhf python3-quart-trio all 0.12.0-1 [12.8 kB] Get: 126 http://deb.debian.org/debian trixie/main armhf python3-socks all 1.7.1+dfsg-1 [23.3 kB] Get: 127 http://deb.debian.org/debian trixie/main armhf python3-trustme all 1.2.0-2 [12.2 kB] Fetched 39.2 MB in 2s (18.0 MB/s) Preconfiguring packages ... Selecting previously unselected package libpython3.12-minimal:armhf. (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 ... 19569 files and directories currently installed.) Preparing to unpack .../libpython3.12-minimal_3.12.8-5_armhf.deb ... Unpacking libpython3.12-minimal:armhf (3.12.8-5) ... Selecting previously unselected package libexpat1:armhf. Preparing to unpack .../libexpat1_2.6.4-1_armhf.deb ... Unpacking libexpat1:armhf (2.6.4-1) ... Selecting previously unselected package python3.12-minimal. Preparing to unpack .../python3.12-minimal_3.12.8-5_armhf.deb ... Unpacking python3.12-minimal (3.12.8-5) ... Setting up libpython3.12-minimal:armhf (3.12.8-5) ... Setting up libexpat1:armhf (2.6.4-1) ... Setting up python3.12-minimal (3.12.8-5) ... Selecting previously unselected package python3-minimal. (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 ... 19889 files and directories currently installed.) Preparing to unpack .../00-python3-minimal_3.12.8-1_armhf.deb ... Unpacking python3-minimal (3.12.8-1) ... Selecting previously unselected package media-types. Preparing to unpack .../01-media-types_10.1.0_all.deb ... Unpacking media-types (10.1.0) ... Selecting previously unselected package netbase. Preparing to unpack .../02-netbase_6.4_all.deb ... Unpacking netbase (6.4) ... Selecting previously unselected package tzdata. Preparing to unpack .../03-tzdata_2024b-6_all.deb ... Unpacking tzdata (2024b-6) ... Selecting previously unselected package libffi8:armhf. Preparing to unpack .../04-libffi8_3.4.6-1_armhf.deb ... Unpacking libffi8:armhf (3.4.6-1) ... Selecting previously unselected package libkrb5support0:armhf. Preparing to unpack .../05-libkrb5support0_1.21.3-3_armhf.deb ... Unpacking libkrb5support0:armhf (1.21.3-3) ... Selecting previously unselected package libcom-err2:armhf. Preparing to unpack .../06-libcom-err2_1.47.2-1_armhf.deb ... Unpacking libcom-err2:armhf (1.47.2-1) ... Selecting previously unselected package libk5crypto3:armhf. Preparing to unpack .../07-libk5crypto3_1.21.3-3_armhf.deb ... Unpacking libk5crypto3:armhf (1.21.3-3) ... Selecting previously unselected package libkeyutils1:armhf. Preparing to unpack .../08-libkeyutils1_1.6.3-4_armhf.deb ... Unpacking libkeyutils1:armhf (1.6.3-4) ... Selecting previously unselected package libkrb5-3:armhf. Preparing to unpack .../09-libkrb5-3_1.21.3-3_armhf.deb ... Unpacking libkrb5-3:armhf (1.21.3-3) ... Selecting previously unselected package libgssapi-krb5-2:armhf. Preparing to unpack .../10-libgssapi-krb5-2_1.21.3-3_armhf.deb ... Unpacking libgssapi-krb5-2:armhf (1.21.3-3) ... Selecting previously unselected package libtirpc-common. Preparing to unpack .../11-libtirpc-common_1.3.4+ds-1.3_all.deb ... Unpacking libtirpc-common (1.3.4+ds-1.3) ... Selecting previously unselected package libtirpc3t64:armhf. Preparing to unpack .../12-libtirpc3t64_1.3.4+ds-1.3+b1_armhf.deb ... Adding 'diversion of /lib/arm-linux-gnueabihf/libtirpc.so.3 to /lib/arm-linux-gnueabihf/libtirpc.so.3.usr-is-merged by libtirpc3t64' Adding 'diversion of /lib/arm-linux-gnueabihf/libtirpc.so.3.0.0 to /lib/arm-linux-gnueabihf/libtirpc.so.3.0.0.usr-is-merged by libtirpc3t64' Unpacking libtirpc3t64:armhf (1.3.4+ds-1.3+b1) ... Selecting previously unselected package libnsl2:armhf. Preparing to unpack .../13-libnsl2_1.3.0-3+b3_armhf.deb ... Unpacking libnsl2:armhf (1.3.0-3+b3) ... Selecting previously unselected package readline-common. Preparing to unpack .../14-readline-common_8.2-6_all.deb ... Unpacking readline-common (8.2-6) ... Selecting previously unselected package libreadline8t64:armhf. Preparing to unpack .../15-libreadline8t64_8.2-6_armhf.deb ... Adding 'diversion of /lib/arm-linux-gnueabihf/libhistory.so.8 to /lib/arm-linux-gnueabihf/libhistory.so.8.usr-is-merged by libreadline8t64' Adding 'diversion of /lib/arm-linux-gnueabihf/libhistory.so.8.2 to /lib/arm-linux-gnueabihf/libhistory.so.8.2.usr-is-merged by libreadline8t64' Adding 'diversion of /lib/arm-linux-gnueabihf/libreadline.so.8 to /lib/arm-linux-gnueabihf/libreadline.so.8.usr-is-merged by libreadline8t64' Adding 'diversion of /lib/arm-linux-gnueabihf/libreadline.so.8.2 to /lib/arm-linux-gnueabihf/libreadline.so.8.2.usr-is-merged by libreadline8t64' Unpacking libreadline8t64:armhf (8.2-6) ... Selecting previously unselected package libpython3.12-stdlib:armhf. Preparing to unpack .../16-libpython3.12-stdlib_3.12.8-5_armhf.deb ... Unpacking libpython3.12-stdlib:armhf (3.12.8-5) ... Selecting previously unselected package python3.12. Preparing to unpack .../17-python3.12_3.12.8-5_armhf.deb ... Unpacking python3.12 (3.12.8-5) ... Selecting previously unselected package libpython3-stdlib:armhf. Preparing to unpack .../18-libpython3-stdlib_3.12.8-1_armhf.deb ... Unpacking libpython3-stdlib:armhf (3.12.8-1) ... Setting up python3-minimal (3.12.8-1) ... Selecting previously unselected package python3. (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 ... 20957 files and directories currently installed.) Preparing to unpack .../000-python3_3.12.8-1_armhf.deb ... Unpacking python3 (3.12.8-1) ... Selecting previously unselected package libpython3.13-minimal:armhf. Preparing to unpack .../001-libpython3.13-minimal_3.13.1-3_armhf.deb ... Unpacking libpython3.13-minimal:armhf (3.13.1-3) ... Selecting previously unselected package python3.13-minimal. Preparing to unpack .../002-python3.13-minimal_3.13.1-3_armhf.deb ... Unpacking python3.13-minimal (3.13.1-3) ... Selecting previously unselected package sensible-utils. Preparing to unpack .../003-sensible-utils_0.0.24_all.deb ... Unpacking sensible-utils (0.0.24) ... Selecting previously unselected package openssl. Preparing to unpack .../004-openssl_3.4.0-2_armhf.deb ... Unpacking openssl (3.4.0-2) ... Selecting previously unselected package ca-certificates. Preparing to unpack .../005-ca-certificates_20241223_all.deb ... Unpacking ca-certificates (20241223) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../006-libmagic-mgc_1%3a5.45-3+b1_armhf.deb ... Unpacking libmagic-mgc (1:5.45-3+b1) ... Selecting previously unselected package libmagic1t64:armhf. Preparing to unpack .../007-libmagic1t64_1%3a5.45-3+b1_armhf.deb ... Unpacking libmagic1t64:armhf (1:5.45-3+b1) ... Selecting previously unselected package file. Preparing to unpack .../008-file_1%3a5.45-3+b1_armhf.deb ... Unpacking file (1:5.45-3+b1) ... Selecting previously unselected package gettext-base. Preparing to unpack .../009-gettext-base_0.22.5-4_armhf.deb ... Unpacking gettext-base (0.22.5-4) ... Selecting previously unselected package libuchardet0:armhf. Preparing to unpack .../010-libuchardet0_0.0.8-1+b2_armhf.deb ... Unpacking libuchardet0:armhf (0.0.8-1+b2) ... Selecting previously unselected package groff-base. Preparing to unpack .../011-groff-base_1.23.0-7_armhf.deb ... Unpacking groff-base (1.23.0-7) ... Selecting previously unselected package bsdextrautils. Preparing to unpack .../012-bsdextrautils_2.40.4-1_armhf.deb ... Unpacking bsdextrautils (2.40.4-1) ... Selecting previously unselected package libpipeline1:armhf. Preparing to unpack .../013-libpipeline1_1.5.8-1_armhf.deb ... Unpacking libpipeline1:armhf (1.5.8-1) ... Selecting previously unselected package man-db. Preparing to unpack .../014-man-db_2.13.0-1_armhf.deb ... Unpacking man-db (2.13.0-1) ... Selecting previously unselected package m4. Preparing to unpack .../015-m4_1.4.19-5_armhf.deb ... Unpacking m4 (1.4.19-5) ... Selecting previously unselected package autoconf. Preparing to unpack .../016-autoconf_2.72-3_all.deb ... Unpacking autoconf (2.72-3) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../017-autotools-dev_20220109.1_all.deb ... Unpacking autotools-dev (20220109.1) ... Selecting previously unselected package automake. Preparing to unpack .../018-automake_1%3a1.16.5-1.3_all.deb ... Unpacking automake (1:1.16.5-1.3) ... Selecting previously unselected package autopoint. Preparing to unpack .../019-autopoint_0.22.5-4_all.deb ... Unpacking autopoint (0.22.5-4) ... Selecting previously unselected package libdebhelper-perl. Preparing to unpack .../020-libdebhelper-perl_13.23_all.deb ... Unpacking libdebhelper-perl (13.23) ... Selecting previously unselected package libtool. Preparing to unpack .../021-libtool_2.5.4-2_all.deb ... Unpacking libtool (2.5.4-2) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../022-dh-autoreconf_20_all.deb ... Unpacking dh-autoreconf (20) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../023-libarchive-zip-perl_1.68-1_all.deb ... Unpacking libarchive-zip-perl (1.68-1) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../024-libfile-stripnondeterminism-perl_1.14.0-1_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.14.0-1) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../025-dh-strip-nondeterminism_1.14.0-1_all.deb ... Unpacking dh-strip-nondeterminism (1.14.0-1) ... Selecting previously unselected package libelf1t64:armhf. Preparing to unpack .../026-libelf1t64_0.192-4_armhf.deb ... Unpacking libelf1t64:armhf (0.192-4) ... Selecting previously unselected package dwz. Preparing to unpack .../027-dwz_0.15-1+b2_armhf.deb ... Unpacking dwz (0.15-1+b2) ... Selecting previously unselected package libunistring5:armhf. Preparing to unpack .../028-libunistring5_1.3-1_armhf.deb ... Unpacking libunistring5:armhf (1.3-1) ... Selecting previously unselected package libicu72:armhf. Preparing to unpack .../029-libicu72_72.1-6_armhf.deb ... Unpacking libicu72:armhf (72.1-6) ... Selecting previously unselected package libxml2:armhf. Preparing to unpack .../030-libxml2_2.12.7+dfsg+really2.9.14-0.2+b1_armhf.deb ... Unpacking libxml2:armhf (2.12.7+dfsg+really2.9.14-0.2+b1) ... Selecting previously unselected package gettext. Preparing to unpack .../031-gettext_0.22.5-4_armhf.deb ... Unpacking gettext (0.22.5-4) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../032-intltool-debian_0.35.0+20060710.6_all.deb ... Unpacking intltool-debian (0.35.0+20060710.6) ... Selecting previously unselected package po-debconf. Preparing to unpack .../033-po-debconf_1.0.21+nmu1_all.deb ... Unpacking po-debconf (1.0.21+nmu1) ... Selecting previously unselected package debhelper. Preparing to unpack .../034-debhelper_13.23_all.deb ... Unpacking debhelper (13.23) ... Selecting previously unselected package python3-autocommand. Preparing to unpack .../035-python3-autocommand_2.2.2-3_all.deb ... Unpacking python3-autocommand (2.2.2-3) ... Selecting previously unselected package python3-more-itertools. Preparing to unpack .../036-python3-more-itertools_10.6.0-1_all.deb ... Unpacking python3-more-itertools (10.6.0-1) ... Selecting previously unselected package python3-typing-extensions. Preparing to unpack .../037-python3-typing-extensions_4.12.2-2_all.deb ... Unpacking python3-typing-extensions (4.12.2-2) ... Selecting previously unselected package python3-typeguard. Preparing to unpack .../038-python3-typeguard_4.4.1-1_all.deb ... Unpacking python3-typeguard (4.4.1-1) ... Selecting previously unselected package python3-inflect. Preparing to unpack .../039-python3-inflect_7.3.1-2_all.deb ... Unpacking python3-inflect (7.3.1-2) ... Selecting previously unselected package python3-jaraco.context. Preparing to unpack .../040-python3-jaraco.context_6.0.0-1_all.deb ... Unpacking python3-jaraco.context (6.0.0-1) ... Selecting previously unselected package python3-jaraco.functools. Preparing to unpack .../041-python3-jaraco.functools_4.1.0-1_all.deb ... Unpacking python3-jaraco.functools (4.1.0-1) ... Selecting previously unselected package python3-pkg-resources. Preparing to unpack .../042-python3-pkg-resources_75.6.0-1_all.deb ... Unpacking python3-pkg-resources (75.6.0-1) ... Selecting previously unselected package python3-jaraco.text. Preparing to unpack .../043-python3-jaraco.text_4.0.0-1_all.deb ... Unpacking python3-jaraco.text (4.0.0-1) ... Selecting previously unselected package python3-zipp. Preparing to unpack .../044-python3-zipp_3.21.0-1_all.deb ... Unpacking python3-zipp (3.21.0-1) ... Selecting previously unselected package python3-setuptools. Preparing to unpack .../045-python3-setuptools_75.6.0-1_all.deb ... Unpacking python3-setuptools (75.6.0-1) ... Selecting previously unselected package dh-python. Preparing to unpack .../046-dh-python_6.20250108_all.deb ... Unpacking dh-python (6.20250108) ... Selecting previously unselected package libpython3.13-stdlib:armhf. Preparing to unpack .../047-libpython3.13-stdlib_3.13.1-3_armhf.deb ... Unpacking libpython3.13-stdlib:armhf (3.13.1-3) ... Selecting previously unselected package python3-packaging. Preparing to unpack .../048-python3-packaging_24.2-1_all.deb ... Unpacking python3-packaging (24.2-1) ... Selecting previously unselected package python3-pyproject-hooks. Preparing to unpack .../049-python3-pyproject-hooks_1.2.0-1_all.deb ... Unpacking python3-pyproject-hooks (1.2.0-1) ... Selecting previously unselected package python3-toml. Preparing to unpack .../050-python3-toml_0.10.2-1_all.deb ... Unpacking python3-toml (0.10.2-1) ... Selecting previously unselected package python3-wheel. Preparing to unpack .../051-python3-wheel_0.45.1-1_all.deb ... Unpacking python3-wheel (0.45.1-1) ... Selecting previously unselected package python3-build. Preparing to unpack .../052-python3-build_1.2.2-1_all.deb ... Unpacking python3-build (1.2.2-1) ... Selecting previously unselected package python3-installer. Preparing to unpack .../053-python3-installer_0.7.0+dfsg1-3_all.deb ... Unpacking python3-installer (0.7.0+dfsg1-3) ... Selecting previously unselected package pybuild-plugin-pyproject. Preparing to unpack .../054-pybuild-plugin-pyproject_6.20250108_all.deb ... Unpacking pybuild-plugin-pyproject (6.20250108) ... Selecting previously unselected package python3-aiofiles. Preparing to unpack .../055-python3-aiofiles_24.1.0-2_all.deb ... Unpacking python3-aiofiles (24.1.0-2) ... Selecting previously unselected package python3.13. Preparing to unpack .../056-python3.13_3.13.1-3_armhf.deb ... Unpacking python3.13 (3.13.1-3) ... Selecting previously unselected package python3-all. Preparing to unpack .../057-python3-all_3.12.8-1_armhf.deb ... Unpacking python3-all (3.12.8-1) ... Selecting previously unselected package python3-idna. Preparing to unpack .../058-python3-idna_3.8-2_all.deb ... Unpacking python3-idna (3.8-2) ... Selecting previously unselected package python3-sniffio. Preparing to unpack .../059-python3-sniffio_1.3.1-1_all.deb ... Unpacking python3-sniffio (1.3.1-1) ... Selecting previously unselected package python3-anyio. Preparing to unpack .../060-python3-anyio_4.7.0-1_all.deb ... Unpacking python3-anyio (4.7.0-1) ... Selecting previously unselected package python3-attr. Preparing to unpack .../061-python3-attr_24.3.0-1_all.deb ... Unpacking python3-attr (24.3.0-1) ... Selecting previously unselected package python3-bcrypt. Preparing to unpack .../062-python3-bcrypt_4.2.0-2.1_armhf.deb ... Unpacking python3-bcrypt (4.2.0-2.1) ... Selecting previously unselected package python3-blinker. Preparing to unpack .../063-python3-blinker_1.9.0-1_all.deb ... Unpacking python3-blinker (1.9.0-1) ... Selecting previously unselected package python3-brotli. Preparing to unpack .../064-python3-brotli_1.1.0-2+b6_armhf.deb ... Unpacking python3-brotli (1.1.0-2+b6) ... Selecting previously unselected package python3-certifi. Preparing to unpack .../065-python3-certifi_2024.12.14+ds-1_all.deb ... Unpacking python3-certifi (2024.12.14+ds-1) ... Selecting previously unselected package python3-cffi-backend:armhf. Preparing to unpack .../066-python3-cffi-backend_1.17.1-2+b1_armhf.deb ... Unpacking python3-cffi-backend:armhf (1.17.1-2+b1) ... Selecting previously unselected package python3-click. Preparing to unpack .../067-python3-click_8.1.8-1_all.deb ... Unpacking python3-click (8.1.8-1) ... Selecting previously unselected package python3-coverage. Preparing to unpack .../068-python3-coverage_7.6.0+dfsg1-2+b1_armhf.deb ... Unpacking python3-coverage (7.6.0+dfsg1-2+b1) ... Selecting previously unselected package python3-cryptography. Preparing to unpack .../069-python3-cryptography_43.0.0-1_armhf.deb ... Unpacking python3-cryptography (43.0.0-1) ... Selecting previously unselected package python3-itsdangerous. Preparing to unpack .../070-python3-itsdangerous_2.2.0-2_all.deb ... Unpacking python3-itsdangerous (2.2.0-2) ... Selecting previously unselected package python3-markupsafe. Preparing to unpack .../071-python3-markupsafe_2.1.5-1+b2_armhf.deb ... Unpacking python3-markupsafe (2.1.5-1+b2) ... Selecting previously unselected package python3-jinja2. Preparing to unpack .../072-python3-jinja2_3.1.3-2_all.deb ... Unpacking python3-jinja2 (3.1.3-2) ... Selecting previously unselected package python3-werkzeug. Preparing to unpack .../073-python3-werkzeug_3.1.3-2_all.deb ... Unpacking python3-werkzeug (3.1.3-2) ... Selecting previously unselected package python3-flask. Preparing to unpack .../074-python3-flask_3.1.0-2_all.deb ... Unpacking python3-flask (3.1.0-2) ... Selecting previously unselected package python3-h11. Preparing to unpack .../075-python3-h11_0.14.0-1_all.deb ... Unpacking python3-h11 (0.14.0-1) ... Selecting previously unselected package python3-hpack. Preparing to unpack .../076-python3-hpack_4.0.0-2_all.deb ... Unpacking python3-hpack (4.0.0-2) ... Selecting previously unselected package python3-hyperframe. Preparing to unpack .../077-python3-hyperframe_6.0.0-1_all.deb ... Unpacking python3-hyperframe (6.0.0-1) ... Selecting previously unselected package python3-h2. Preparing to unpack .../078-python3-h2_4.1.0-4_all.deb ... Unpacking python3-h2 (4.1.0-4) ... Selecting previously unselected package python3-pathspec. Preparing to unpack .../079-python3-pathspec_0.12.1-1_all.deb ... Unpacking python3-pathspec (0.12.1-1) ... Selecting previously unselected package python3-pluggy. Preparing to unpack .../080-python3-pluggy_1.5.0-1_all.deb ... Unpacking python3-pluggy (1.5.0-1) ... Selecting previously unselected package python3-trove-classifiers. Preparing to unpack .../081-python3-trove-classifiers_2024.9.12-1_all.deb ... Unpacking python3-trove-classifiers (2024.9.12-1) ... Selecting previously unselected package python3-hatchling. Preparing to unpack .../082-python3-hatchling_1.27.0-1_all.deb ... Unpacking python3-hatchling (1.27.0-1) ... Selecting previously unselected package python3-setuptools-scm. Preparing to unpack .../083-python3-setuptools-scm_8.1.0-1_all.deb ... Unpacking python3-setuptools-scm (8.1.0-1) ... Selecting previously unselected package python3-hatch-vcs. Preparing to unpack .../084-python3-hatch-vcs_0.4.0-1_all.deb ... Unpacking python3-hatch-vcs (0.4.0-1) ... Selecting previously unselected package python3-httpcore. Preparing to unpack .../085-python3-httpcore_1.0.7-1_all.deb ... Unpacking python3-httpcore (1.0.7-1) ... Selecting previously unselected package python3-pygments. Preparing to unpack .../086-python3-pygments_2.18.0+dfsg-2_all.deb ... Unpacking python3-pygments (2.18.0+dfsg-2) ... Selecting previously unselected package python3-mdurl. Preparing to unpack .../087-python3-mdurl_0.1.2-1_all.deb ... Unpacking python3-mdurl (0.1.2-1) ... Selecting previously unselected package python3-markdown-it. Preparing to unpack .../088-python3-markdown-it_3.0.0-2_all.deb ... Unpacking python3-markdown-it (3.0.0-2) ... Selecting previously unselected package python3-rich. Preparing to unpack .../089-python3-rich_13.9.4-1_all.deb ... Unpacking python3-rich (13.9.4-1) ... Selecting previously unselected package python3-httpx. Preparing to unpack .../090-python3-httpx_0.27.2-1_all.deb ... Unpacking python3-httpx (0.27.2-1) ... Selecting previously unselected package python3-priority. Preparing to unpack .../091-python3-priority_2.0.0-1_all.deb ... Unpacking python3-priority (2.0.0-1) ... Selecting previously unselected package python3-wsproto. Preparing to unpack .../092-python3-wsproto_1.2.0-1_all.deb ... Unpacking python3-wsproto (1.2.0-1) ... Selecting previously unselected package python3-hypercorn. Preparing to unpack .../093-python3-hypercorn_0.17.3-2_all.deb ... Unpacking python3-hypercorn (0.17.3-2) ... Selecting previously unselected package python3-iniconfig. Preparing to unpack .../094-python3-iniconfig_1.1.1-2_all.deb ... Unpacking python3-iniconfig (1.1.1-2) ... Selecting previously unselected package python3-openssl. Preparing to unpack .../095-python3-openssl_25.0.0-1_all.deb ... Unpacking python3-openssl (25.0.0-1) ... Selecting previously unselected package python3-outcome. Preparing to unpack .../096-python3-outcome_1.2.0-1.1_all.deb ... Unpacking python3-outcome (1.2.0-1.1) ... Selecting previously unselected package python3-pytest. Preparing to unpack .../097-python3-pytest_8.3.4-1_all.deb ... Unpacking python3-pytest (8.3.4-1) ... Selecting previously unselected package python3-pytest-timeout. Preparing to unpack .../098-python3-pytest-timeout_2.3.1-1_all.deb ... Unpacking python3-pytest-timeout (2.3.1-1) ... Selecting previously unselected package python3-quart. Preparing to unpack .../099-python3-quart_0.20.0-1_all.deb ... Unpacking python3-quart (0.20.0-1) ... Selecting previously unselected package python3-sortedcontainers. Preparing to unpack .../100-python3-sortedcontainers_2.4.0-2_all.deb ... Unpacking python3-sortedcontainers (2.4.0-2) ... Selecting previously unselected package python3-trio. Preparing to unpack .../101-python3-trio_0.27.0-1_all.deb ... Unpacking python3-trio (0.27.0-1) ... Selecting previously unselected package python3-quart-trio. Preparing to unpack .../102-python3-quart-trio_0.12.0-1_all.deb ... Unpacking python3-quart-trio (0.12.0-1) ... Selecting previously unselected package python3-socks. Preparing to unpack .../103-python3-socks_1.7.1+dfsg-1_all.deb ... Unpacking python3-socks (1.7.1+dfsg-1) ... Selecting previously unselected package python3-trustme. Preparing to unpack .../104-python3-trustme_1.2.0-2_all.deb ... Unpacking python3-trustme (1.2.0-2) ... Setting up media-types (10.1.0) ... Setting up libpipeline1:armhf (1.5.8-1) ... Setting up libkeyutils1:armhf (1.6.3-4) ... Setting up libicu72:armhf (72.1-6) ... Setting up bsdextrautils (2.40.4-1) ... Setting up libmagic-mgc (1:5.45-3+b1) ... Setting up libarchive-zip-perl (1.68-1) ... Setting up libtirpc-common (1.3.4+ds-1.3) ... Setting up libdebhelper-perl (13.23) ... Setting up libmagic1t64:armhf (1:5.45-3+b1) ... Setting up gettext-base (0.22.5-4) ... Setting up m4 (1.4.19-5) ... Setting up libcom-err2:armhf (1.47.2-1) ... Setting up file (1:5.45-3+b1) ... Setting up libelf1t64:armhf (0.192-4) ... Setting up libkrb5support0:armhf (1.21.3-3) ... Setting up tzdata (2024b-6) ... Current default time zone: 'Etc/UTC' Local time is now: Thu Jan 23 23:44:54 UTC 2025. Universal Time is now: Thu Jan 23 23:44:54 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libpython3.13-minimal:armhf (3.13.1-3) ... Setting up autotools-dev (20220109.1) ... Setting up libunistring5:armhf (1.3-1) ... Setting up autopoint (0.22.5-4) ... Setting up libk5crypto3:armhf (1.21.3-3) ... Setting up autoconf (2.72-3) ... Setting up libffi8:armhf (3.4.6-1) ... Setting up dwz (0.15-1+b2) ... Setting up sensible-utils (0.0.24) ... Setting up libuchardet0:armhf (0.0.8-1+b2) ... Setting up python3.13-minimal (3.13.1-3) ... Setting up netbase (6.4) ... Setting up libkrb5-3:armhf (1.21.3-3) ... Setting up openssl (3.4.0-2) ... Setting up readline-common (8.2-6) ... Setting up libxml2:armhf (2.12.7+dfsg+really2.9.14-0.2+b1) ... Setting up automake (1:1.16.5-1.3) ... update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode Setting up libfile-stripnondeterminism-perl (1.14.0-1) ... Setting up gettext (0.22.5-4) ... Setting up libtool (2.5.4-2) ... Setting up intltool-debian (0.35.0+20060710.6) ... Setting up dh-autoreconf (20) ... Setting up ca-certificates (20241223) ... Updating certificates in /etc/ssl/certs... 152 added, 0 removed; done. Setting up libgssapi-krb5-2:armhf (1.21.3-3) ... Setting up libreadline8t64:armhf (8.2-6) ... Setting up dh-strip-nondeterminism (1.14.0-1) ... Setting up groff-base (1.23.0-7) ... Setting up libpython3.13-stdlib:armhf (3.13.1-3) ... Setting up libtirpc3t64:armhf (1.3.4+ds-1.3+b1) ... Setting up python3.13 (3.13.1-3) ... Setting up po-debconf (1.0.21+nmu1) ... Setting up man-db (2.13.0-1) ... Not building database; man-db/auto-update is not 'true'. Setting up libnsl2:armhf (1.3.0-3+b3) ... Setting up libpython3.12-stdlib:armhf (3.12.8-5) ... Setting up python3.12 (3.12.8-5) ... Setting up debhelper (13.23) ... Setting up libpython3-stdlib:armhf (3.12.8-1) ... Setting up python3 (3.12.8-1) ... Setting up python3-sortedcontainers (2.4.0-2) ... Setting up python3-zipp (3.21.0-1) ... Setting up python3-click (8.1.8-1) ... Setting up python3-autocommand (2.2.2-3) ... Setting up python3-markupsafe (2.1.5-1+b2) ... Setting up python3-wheel (0.45.1-1) ... Setting up python3-jinja2 (3.1.3-2) ... Setting up python3-pygments (2.18.0+dfsg-2) ... Setting up python3-packaging (24.2-1) ... Setting up python3-pyproject-hooks (1.2.0-1) ... Setting up python3-certifi (2024.12.14+ds-1) ... Setting up python3-priority (2.0.0-1) ... Setting up python3-werkzeug (3.1.3-2) ... Setting up python3-brotli (1.1.0-2+b6) ... Setting up python3-mdurl (0.1.2-1) ... Setting up python3-idna (3.8-2) ... Setting up python3-h11 (0.14.0-1) ... Setting up python3-typing-extensions (4.12.2-2) ... Setting up python3-toml (0.10.2-1) ... Setting up python3-installer (0.7.0+dfsg1-3) ... Setting up python3-pluggy (1.5.0-1) ... Setting up python3-markdown-it (3.0.0-2) ... Setting up python3-trove-classifiers (2024.9.12-1) ... Setting up python3-build (1.2.2-1) ... Setting up python3-pathspec (0.12.1-1) ... Setting up python3-cffi-backend:armhf (1.17.1-2+b1) ... Setting up python3-blinker (1.9.0-1) ... Setting up python3-more-itertools (10.6.0-1) ... Setting up python3-httpcore (1.0.7-1) ... Setting up python3-iniconfig (1.1.1-2) ... Setting up python3-sniffio (1.3.1-1) ... Setting up python3-attr (24.3.0-1) ... Setting up python3-aiofiles (24.1.0-2) ... Setting up python3-jaraco.functools (4.1.0-1) ... Setting up python3-wsproto (1.2.0-1) ... Setting up python3-socks (1.7.1+dfsg-1) ... Setting up python3-jaraco.context (6.0.0-1) ... Setting up python3-anyio (4.7.0-1) ... Setting up python3-hyperframe (6.0.0-1) ... Setting up python3-hpack (4.0.0-2) ... Setting up python3-rich (13.9.4-1) ... Setting up python3-pytest (8.3.4-1) ... Setting up python3-bcrypt (4.2.0-2.1) ... Setting up python3-typeguard (4.4.1-1) ... Setting up python3-itsdangerous (2.2.0-2) ... Setting up python3-all (3.12.8-1) ... Setting up python3-coverage (7.6.0+dfsg1-2+b1) ... Setting up python3-inflect (7.3.1-2) ... Setting up python3-httpx (0.27.2-1) ... Setting up python3-jaraco.text (4.0.0-1) ... Setting up python3-cryptography (43.0.0-1) ... Setting up python3-hatchling (1.27.0-1) ... Setting up python3-h2 (4.1.0-4) ... Setting up python3-pkg-resources (75.6.0-1) ... Setting up python3-outcome (1.2.0-1.1) ... Setting up python3-setuptools (75.6.0-1) ... Setting up python3-pytest-timeout (2.3.1-1) ... Setting up python3-openssl (25.0.0-1) ... Setting up python3-flask (3.1.0-2) ... Setting up python3-hypercorn (0.17.3-2) ... Setting up python3-trustme (1.2.0-2) ... Setting up python3-setuptools-scm (8.1.0-1) ... Setting up python3-trio (0.27.0-1) ... Setting up python3-hatch-vcs (0.4.0-1) ... Setting up dh-python (6.20250108) ... Setting up python3-quart (0.20.0-1) ... Setting up python3-quart-trio (0.12.0-1) ... Setting up pybuild-plugin-pyproject (6.20250108) ... Processing triggers for libc-bin (2.40-5) ... Processing triggers for ca-certificates (20241223) ... Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. Reading package lists... Building dependency tree... Reading state information... Reading extended state information... Initializing package states... Writing extended state information... Building tag database... -> Finished parsing the build-deps I: Building the package I: Running cd /build/reproducible-path/python-urllib3-2.3.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-urllib3_2.3.0-1_source.changes dpkg-buildpackage: info: source package python-urllib3 dpkg-buildpackage: info: source version 2.3.0-1 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Colin Watson dpkg-source --before-build . dpkg-buildpackage: info: host architecture armhf debian/rules clean dh clean --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild dh_autoreconf_clean -O--buildsystem=pybuild debian/rules override_dh_clean make[1]: Entering directory '/build/reproducible-path/python-urllib3-2.3.0' dh_clean find . -type d -name .pytest_cache -exec rm -rf {} + make[1]: Leaving directory '/build/reproducible-path/python-urllib3-2.3.0' debian/rules binary dh binary --buildsystem=pybuild dh_update_autotools_config -O--buildsystem=pybuild dh_autoreconf -O--buildsystem=pybuild dh_auto_configure -O--buildsystem=pybuild dh_auto_build -O--buildsystem=pybuild I: pybuild plugin_pyproject:129: Building wheel for python3.13 with "build" module I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3 * Building wheel... Successfully built urllib3-2.3.0-py3-none-any.whl I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.13 with "installer" module I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build" module I: pybuild base:311: python3.12 -m build --skip-dependency-check --no-isolation --wheel --outdir /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3 * Building wheel... Successfully built urllib3-2.3.0-py3-none-any.whl I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with "installer" module debian/rules override_dh_auto_test make[1]: Entering directory '/build/reproducible-path/python-urllib3-2.3.0' PYTHONPATH=/build/reproducible-path/python-urllib3-2.3.0/debian/vendor dh_auto_test I: pybuild base:311: cd /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build; python3.13 -m pytest -k "not requires_network and not test_recent_date" ============================= test session starts ============================== platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 rootdir: /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build configfile: pyproject.toml plugins: timeout-2.3.1, typeguard-4.4.1, anyio-4.7.0 collected 2147 items / 41 deselected / 1 skipped / 2106 selected test/contrib/test_pyopenssl.py ......................................... [ 1%] ..........................ssssEEEsEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 5%] EEEEEEEEEExxEEEEEEEEsEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEExxE [ 8%] EEEEEEEsEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEExxEEEEEEEEsEEEEE [ 12%] EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEExxEEEEE...................... [ 15%] ............sssss.... [ 16%] test/contrib/test_pyopenssl_dependencies.py .. [ 16%] test/contrib/test_socks.py .................F. [ 17%] test/test_collections.py ............................................. [ 19%] test/test_compatibility.py .. [ 19%] test/test_connection.py ................................................ [ 22%] ........................................................................ [ 25%] ........................................................................ [ 28%] ........................................................................ [ 32%] .............. [ 33%] test/test_connectionpool.py ............................................ [ 35%] .............................. [ 36%] test/test_exceptions.py ................ [ 37%] test/test_fields.py .................... [ 38%] test/test_filepost.py ......... [ 38%] test/test_http2_connection.py .................. [ 39%] test/test_no_ssl.py .. [ 39%] test/test_poolmanager.py s.................................... [ 41%] test/test_proxymanager.py ...... [ 41%] test/test_queue_monkeypatch.py . [ 41%] test/test_response.py ..........................................ssssssss [ 44%] sssss................................................................... [ 47%] ......... [ 47%] test/test_retry.py ..................................................... [ 50%] ........ [ 50%] test/test_ssl.py ........................................... [ 52%] test/test_ssltransport.py ................. [ 53%] test/test_util.py ...................................................... [ 56%] ........................................................................ [ 59%] ........................................................................ [ 63%] .........................................s.ss..s.ss..................... [ 66%] ................................................................. [ 69%] test/test_wait.py ............. [ 70%] test/with_dummyserver/test_chunked_transfer.py ....................... [ 71%] test/with_dummyserver/test_connection.py EEEEEEEE [ 71%] test/with_dummyserver/test_connectionpool.py .......EEEEEEEEEEEEEEEEEEEE [ 72%] EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 76%] EEEEEEEEEEEEEEEEEEEEE [ 77%] test/with_dummyserver/test_https.py EEEsEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 79%] EEEEEEEEEEEEEEEExxEEEEEEEEsEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 82%] EEExxEEEEEEEEsEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEExxEEEEEEEE [ 85%] sEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEExxEEEEEE.sE.sEEE..ssEE. [ 89%] ssss [ 89%] test/with_dummyserver/test_no_ssl.py EE [ 89%] test/with_dummyserver/test_poolmanager.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 91%] EEEEEEEEEEEEEEEEEs [ 91%] test/with_dummyserver/test_proxy_poolmanager.py EEEEEEEEEEEEEEEEsEEEEEEE [ 93%] EEEEEEEsEEEEsEEsEEEEEE [ 94%] test/with_dummyserver/test_socketlevel.py .............................. [ 95%] ..................sssss......s......................................s.s. [ 98%] s..................... [100%] ==================================== ERRORS ==================================== ______________ ERROR at setup of TestHTTPS_TLSv1.test_simple[h11] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ ______________ ERROR at setup of TestHTTPS_TLSv1.test_simple[h2] _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1.test_default_port ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1.test_client_intermediate __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_client_no_intermediate _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1.test_client_key_password __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_client_encrypted_key_requires_password _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestHTTPS_TLSv1.test_verified ________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1.test_verified_with_context _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_context_combines_with_ca_certs _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1.test_ca_dir_verified ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1.test_invalid_common_name __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1.test_verified_with_bad_ca_certs _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1.test_wrap_socket_failure_resource_leak ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_verified_without_ca_certs _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________________ ERROR at setup of TestHTTPS_TLSv1.test_no_ssl _________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1.test_unverified_ssl _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1.test_ssl_unverified_with_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1.test_assert_hostname_false _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_assert_specific_hostname ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1.test_server_hostname ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_assert_fingerprint_md5 _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_assert_fingerprint_sha1 ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_assert_fingerprint_sha256 _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1.test_assert_invalid_fingerprint _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_verify_none_and_bad_fingerprint ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1.test_verify_none_and_good_fingerprint ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_good_fingerprint_and_hostname_mismatch _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1.test_tunnel[h11] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1.test_tunnel[h2] _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_enhanced_ssl_connection ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_ssl_correct_system_time ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1.test_ssl_wrong_system_time _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_set_ssl_version_to_tls_version _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_set_cert_default_cert_required _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_set_cert_inherits_cert_reqs_from_ssl_context[0] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_set_cert_inherits_cert_reqs_from_ssl_context[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1.test_tls_protocol_name_of_socket ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_ssl_version_is_deprecated _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_no_tls_version_deprecation_with_ssl_context _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_tls_version_maximum_and_minimum ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1.test_sslkeylogfile _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_sslkeylogfile_empty[None] _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1.test_sslkeylogfile_empty[] _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1.test_alpn_default[h11] ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1.test_alpn_default[h2] ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1.test_http2_probe_result_is_cached[h11] ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1.test_http2_probe_result_is_cached[h2] ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_http2_probe_no_result_in_connect_error _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1.test_http2_probe_no_result_in_ssl_error ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_default_ssl_context_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_ssl_context_ssl_version_uses_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_assert_missing_hashfunc ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_1.test_simple[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_1.test_simple[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_1.test_default_port _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_1.test_client_intermediate _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_client_no_intermediate ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_1.test_client_key_password _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_client_encrypted_key_requires_password _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1_1.test_verified _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_1.test_verified_with_context ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_context_combines_with_ca_certs ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_1.test_ca_dir_verified ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_1.test_invalid_common_name _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_1.test_verified_with_bad_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_1.test_wrap_socket_failure_resource_leak __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_verified_without_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestHTTPS_TLSv1_1.test_no_ssl ________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_1.test_unverified_ssl ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_unverified_with_ca_certs _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_hostname_false ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_specific_hostname _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_1.test_server_hostname ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_fingerprint_md5 ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_fingerprint_sha1 _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_fingerprint_sha256 ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_invalid_fingerprint ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_verify_none_and_bad_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_1.test_verify_none_and_good_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_good_fingerprint_and_hostname_mismatch _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_1.test_tunnel[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_1.test_tunnel[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_enhanced_ssl_connection _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_correct_system_time _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_wrong_system_time ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_set_ssl_version_to_tls_version ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_set_cert_default_cert_required ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_set_cert_inherits_cert_reqs_from_ssl_context[0] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_set_cert_inherits_cert_reqs_from_ssl_context[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_1.test_tls_protocol_name_of_socket _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_version_is_deprecated ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_no_tls_version_deprecation_with_ssl_context _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_tls_version_maximum_and_minimum ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_1.test_sslkeylogfile ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_sslkeylogfile_empty[None] ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_1.test_sslkeylogfile_empty[] ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_1.test_alpn_default[h11] __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_1.test_alpn_default[h2] ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_1.test_http2_probe_result_is_cached[h11] __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_1.test_http2_probe_result_is_cached[h2] ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_http2_probe_no_result_in_connect_error _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_http2_probe_no_result_in_ssl_error __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_default_ssl_context_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_context_ssl_version_uses_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_missing_hashfunc _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_2.test_simple[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_2.test_simple[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_2.test_default_port _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_2.test_client_intermediate _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_client_no_intermediate ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_2.test_client_key_password _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_client_encrypted_key_requires_password _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1_2.test_verified _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_2.test_verified_with_context ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_context_combines_with_ca_certs ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_2.test_ca_dir_verified ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_2.test_invalid_common_name _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_2.test_verified_with_bad_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_2.test_wrap_socket_failure_resource_leak __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_verified_without_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestHTTPS_TLSv1_2.test_no_ssl ________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_2.test_unverified_ssl ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_unverified_with_ca_certs _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_hostname_false ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_specific_hostname _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_2.test_server_hostname ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_fingerprint_md5 ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_fingerprint_sha1 _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_fingerprint_sha256 ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_invalid_fingerprint ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_verify_none_and_bad_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_2.test_verify_none_and_good_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_good_fingerprint_and_hostname_mismatch _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_2.test_tunnel[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_2.test_tunnel[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_enhanced_ssl_connection _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_correct_system_time _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_wrong_system_time ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_set_ssl_version_to_tls_version ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_set_cert_default_cert_required ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_set_cert_inherits_cert_reqs_from_ssl_context[0] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_set_cert_inherits_cert_reqs_from_ssl_context[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_2.test_tls_protocol_name_of_socket _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_version_is_deprecated ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_no_tls_version_deprecation_with_ssl_context _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_tls_version_maximum_and_minimum ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_2.test_sslkeylogfile ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_sslkeylogfile_empty[None] ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_2.test_sslkeylogfile_empty[] ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_2.test_alpn_default[h11] __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_2.test_alpn_default[h2] ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_2.test_http2_probe_result_is_cached[h11] __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_2.test_http2_probe_result_is_cached[h2] ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_http2_probe_no_result_in_connect_error _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_http2_probe_no_result_in_ssl_error __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_default_ssl_context_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_context_ssl_version_uses_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_missing_hashfunc _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_3.test_simple[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_3.test_simple[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_3.test_default_port _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_3.test_client_intermediate _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_client_no_intermediate ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_3.test_client_key_password _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_client_encrypted_key_requires_password _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1_3.test_verified _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_3.test_verified_with_context ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_context_combines_with_ca_certs ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_3.test_ca_dir_verified ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_3.test_invalid_common_name _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_3.test_verified_with_bad_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_3.test_wrap_socket_failure_resource_leak __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_verified_without_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestHTTPS_TLSv1_3.test_no_ssl ________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_3.test_unverified_ssl ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_unverified_with_ca_certs _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_hostname_false ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_specific_hostname _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_3.test_server_hostname ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_fingerprint_md5 ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_fingerprint_sha1 _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_fingerprint_sha256 ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_invalid_fingerprint ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_verify_none_and_bad_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_3.test_verify_none_and_good_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_good_fingerprint_and_hostname_mismatch _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_3.test_tunnel[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_3.test_tunnel[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_enhanced_ssl_connection _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_correct_system_time _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_wrong_system_time ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_set_ssl_version_to_tls_version ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_set_cert_default_cert_required ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_set_cert_inherits_cert_reqs_from_ssl_context[0] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_set_cert_inherits_cert_reqs_from_ssl_context[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_3.test_tls_protocol_name_of_socket _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_version_is_deprecated ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_no_tls_version_deprecation_with_ssl_context _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_tls_version_maximum_and_minimum ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_3.test_sslkeylogfile ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_sslkeylogfile_empty[None] ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_3.test_sslkeylogfile_empty[] ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_3.test_alpn_default[h11] __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_3.test_alpn_default[h2] ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_3.test_http2_probe_result_is_cached[h11] __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_3.test_http2_probe_result_is_cached[h2] ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_http2_probe_no_result_in_connect_error _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_http2_probe_no_result_in_ssl_error __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_default_ssl_context_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_context_ssl_version_uses_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_missing_hashfunc _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of test_returns_urllib3_HTTPResponse ______________ @pytest.fixture() def pool() -> typing.Generator[HTTPConnectionPool]: > server.setup_class() test/with_dummyserver/test_connection.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ ______________________ ERROR at setup of test_audit_event ______________________ @pytest.fixture() def pool() -> typing.Generator[HTTPConnectionPool]: > server.setup_class() test/with_dummyserver/test_connection.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _________________ ERROR at setup of test_does_not_release_conn _________________ @pytest.fixture() def pool() -> typing.Generator[HTTPConnectionPool]: > server.setup_class() test/with_dummyserver/test_connection.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _____________________ ERROR at setup of test_releases_conn _____________________ @pytest.fixture() def pool() -> typing.Generator[HTTPConnectionPool]: > server.setup_class() test/with_dummyserver/test_connection.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ __________________ ERROR at setup of test_double_getresponse ___________________ @pytest.fixture() def pool() -> typing.Generator[HTTPConnectionPool]: > server.setup_class() test/with_dummyserver/test_connection.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ ______________ ERROR at setup of test_connection_state_properties ______________ @pytest.fixture() def pool() -> typing.Generator[HTTPConnectionPool]: > server.setup_class() test/with_dummyserver/test_connection.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ __________________ ERROR at setup of test_set_tunnel_is_reset __________________ @pytest.fixture() def pool() -> typing.Generator[HTTPConnectionPool]: > server.setup_class() test/with_dummyserver/test_connection.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _________________ ERROR at setup of test_invalid_tunnel_scheme _________________ @pytest.fixture() def pool() -> typing.Generator[HTTPConnectionPool]: > server.setup_class() test/with_dummyserver/test_connection.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _______ ERROR at setup of TestConnectionPool.test_http2_test_error[h11] ________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ ________ ERROR at setup of TestConnectionPool.test_http2_test_error[h2] ________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________________ ERROR at setup of TestConnectionPool.test_get _________________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestConnectionPool.test_debug_log ______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestConnectionPool.test_post_url ______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestConnectionPool.test_urlopen_put _____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestConnectionPool.test_wrong_specific_method ________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestConnectionPool.test_upload _______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestConnectionPool.test_one_name_multiple_values ______ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestConnectionPool.test_request_method_body _________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestConnectionPool.test_unicode_upload ___________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestConnectionPool.test_nagle ________________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestConnectionPool.test_socket_options[socket_options0] ___ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestConnectionPool.test_socket_options[socket_options1] ___ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_disable_default_socket_options[None] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_disable_default_socket_options[socket_options1] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestConnectionPool.test_defaults_are_applied ________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestConnectionPool.test_connection_error_retries ______ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestConnectionPool.test_timeout_success ___________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_constructor[1-expect_settimeout_calls0] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_constructor[None-expect_settimeout_calls1] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_constructor[timeout2-expect_settimeout_calls2] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_constructor[timeout3-expect_settimeout_calls3] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_constructor[timeout4-expect_settimeout_calls4] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_parameter[1-expect_settimeout_calls0] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_parameter[None-expect_settimeout_calls1] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_parameter[timeout2-expect_settimeout_calls2] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_parameter[timeout3-expect_settimeout_calls3] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_parameter[timeout4-expect_settimeout_calls4] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestConnectionPool.test_tunnel _______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_redirect_relative_url_no_deprecation _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestConnectionPool.test_redirect ______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_303_redirect_makes_request_lose_body _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestConnectionPool.test_bad_connect _____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestConnectionPool.test_keepalive ______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestConnectionPool.test_keepalive_close ___________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestConnectionPool.test_post_with_urlencode _________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestConnectionPool.test_post_with_multipart _________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestConnectionPool.test_post_with_multipart__iter__ _____ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestConnectionPool.test_check_gzip _____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestConnectionPool.test_check_deflate ____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestConnectionPool.test_bad_decode _____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestConnectionPool.test_connection_count __________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestConnectionPool.test_connection_count_bigpool ______ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestConnectionPool.test_partial_response __________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestConnectionPool.test_lazy_load_twice ___________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestConnectionPool.test_for_double_release _________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestConnectionPool.test_release_conn_parameter _______ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestConnectionPool.test_dns_error ______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestConnectionPool.test_invalid_method_not_allowed[ ] ____ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestConnectionPool.test_invalid_method_not_allowed[\r] ___ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestConnectionPool.test_invalid_method_not_allowed[\n] ___ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestConnectionPool.test_invalid_method_not_allowed[\x00] __ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_percent_encode_invalid_target_chars _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestConnectionPool.test_source_address ___________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_source_address_error[invalid_source_address0-False] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_source_address_error[invalid_source_address1-True] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestConnectionPool.test_stream_keepalive __________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestConnectionPool.test_read_chunked_short_circuit _____ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestConnectionPool.test_read_chunked_on_closed_response ___ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestConnectionPool.test_chunked_gzip ____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestConnectionPool.test_cleanup_on_connection_error _____ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestConnectionPool.test_mixed_case_hostname _________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestConnectionPool.test_preserves_path_dot_segments _____ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestConnectionPool.test_default_user_agent_header ______ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[True-None] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[True-headers1] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[True-headers2] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[True-headers3] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[True-headers4] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[True-headers5] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[False-None] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[False-headers1] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[False-headers2] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[False-headers3] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[False-headers4] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[False-headers5] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestConnectionPool.test_no_user_agent_header ________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_skip_header_non_supported[True-Content-Length] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_skip_header_non_supported[True-content-length] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_skip_header_non_supported[False-Content-Length] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_skip_header_non_supported[False-content-length] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_headers_not_modified_by_request[dict-True-True] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_headers_not_modified_by_request[dict-True-False] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_headers_not_modified_by_request[dict-False-True] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_headers_not_modified_by_request[dict-False-False] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_headers_not_modified_by_request[HTTPHeaderDict-True-True] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_headers_not_modified_by_request[HTTPHeaderDict-True-False] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_headers_not_modified_by_request[HTTPHeaderDict-False-True] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_headers_not_modified_by_request[HTTPHeaderDict-False-False] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestConnectionPool.test_request_chunked_is_deprecated ____ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestConnectionPool.test_bytes_header ____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_non_ascii_user_agent[Sch\xf6nefeld/1.18.0_0] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_non_ascii_user_agent[Sch\xf6nefeld/1.18.0_1] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________________ ERROR at setup of TestRetry.test_max_retry __________________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _______________ ERROR at setup of TestRetry.test_disabled_retry ________________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________________ ERROR at setup of TestRetry.test_read_retries _________________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestRetry.test_read_total_retries ______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestRetry.test_retries_wrong_forcelist ___________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestRetry.test_default_method_forcelist_retried _______ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestRetry.test_retries_wrong_method_list __________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestRetry.test_read_retries_unsuccessful __________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestRetry.test_retry_reuse_safe _______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestRetry.test_retry_return_in_response ___________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestRetry.test_retry_redirect_history ____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestRetry.test_multi_redirect_history ____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestRetryAfter.test_retry_after _______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _____________ ERROR at setup of TestRetryAfter.test_redirect_after _____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestFileBodiesOnRetryOrRedirect.test_retries_put_filehandle _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ ___ ERROR at setup of TestFileBodiesOnRetryOrRedirect.test_redirect_put_file ___ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestFileBodiesOnRetryOrRedirect.test_redirect_with_failed_tell _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestRetryPoolSize.test_pool_size_retry ___________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ ________ ERROR at setup of TestRedirectPoolSize.test_pool_size_redirect ________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ ______________ ERROR at setup of TestHTTPS_TLSv1.test_simple[h11] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1.test_simple[h2] _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1.test_default_port ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1.test_client_intermediate __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_client_no_intermediate _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1.test_client_key_password __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_client_encrypted_key_requires_password _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestHTTPS_TLSv1.test_verified ________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1.test_verified_with_context _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_context_combines_with_ca_certs _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1.test_ca_dir_verified ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1.test_invalid_common_name __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1.test_verified_with_bad_ca_certs _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1.test_wrap_socket_failure_resource_leak ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_verified_without_ca_certs _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________________ ERROR at setup of TestHTTPS_TLSv1.test_no_ssl _________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1.test_unverified_ssl _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1.test_ssl_unverified_with_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1.test_assert_hostname_false _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_assert_specific_hostname ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1.test_server_hostname ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_assert_fingerprint_md5 _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_assert_fingerprint_sha1 ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_assert_fingerprint_sha256 _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1.test_assert_invalid_fingerprint _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_verify_none_and_bad_fingerprint ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1.test_verify_none_and_good_fingerprint ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_good_fingerprint_and_hostname_mismatch _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1.test_tunnel[h11] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1.test_tunnel[h2] _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_enhanced_ssl_connection ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_ssl_correct_system_time ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1.test_ssl_wrong_system_time _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_set_ssl_version_to_tls_version _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_set_cert_default_cert_required _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_set_cert_inherits_cert_reqs_from_ssl_context[0] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_set_cert_inherits_cert_reqs_from_ssl_context[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1.test_tls_protocol_name_of_socket ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_ssl_version_is_deprecated _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_no_tls_version_deprecation_with_ssl_context _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_tls_version_maximum_and_minimum ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1.test_sslkeylogfile _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_sslkeylogfile_empty[None] _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1.test_sslkeylogfile_empty[] _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1.test_alpn_default[h11] ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1.test_alpn_default[h2] ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1.test_http2_probe_result_is_cached[h11] ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1.test_http2_probe_result_is_cached[h2] ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_http2_probe_no_result_in_connect_error _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1.test_http2_probe_no_result_in_ssl_error ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_default_ssl_context_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_ssl_context_ssl_version_uses_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_assert_missing_hashfunc ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_1.test_simple[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_1.test_simple[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_1.test_default_port _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_1.test_client_intermediate _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_client_no_intermediate ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_1.test_client_key_password _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_client_encrypted_key_requires_password _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1_1.test_verified _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_1.test_verified_with_context ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_context_combines_with_ca_certs ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_1.test_ca_dir_verified ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_1.test_invalid_common_name _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_1.test_verified_with_bad_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_1.test_wrap_socket_failure_resource_leak __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_verified_without_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestHTTPS_TLSv1_1.test_no_ssl ________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_1.test_unverified_ssl ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_unverified_with_ca_certs _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_hostname_false ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_specific_hostname _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_1.test_server_hostname ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_fingerprint_md5 ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_fingerprint_sha1 _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_fingerprint_sha256 ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_invalid_fingerprint ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_verify_none_and_bad_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_1.test_verify_none_and_good_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_good_fingerprint_and_hostname_mismatch _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_1.test_tunnel[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_1.test_tunnel[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_enhanced_ssl_connection _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_correct_system_time _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_wrong_system_time ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_set_ssl_version_to_tls_version ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_set_cert_default_cert_required ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_set_cert_inherits_cert_reqs_from_ssl_context[0] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_set_cert_inherits_cert_reqs_from_ssl_context[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_1.test_tls_protocol_name_of_socket _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_version_is_deprecated ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_no_tls_version_deprecation_with_ssl_context _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_tls_version_maximum_and_minimum ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_1.test_sslkeylogfile ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_sslkeylogfile_empty[None] ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_1.test_sslkeylogfile_empty[] ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_1.test_alpn_default[h11] __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_1.test_alpn_default[h2] ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_1.test_http2_probe_result_is_cached[h11] __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_1.test_http2_probe_result_is_cached[h2] ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_http2_probe_no_result_in_connect_error _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_http2_probe_no_result_in_ssl_error __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_default_ssl_context_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_context_ssl_version_uses_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_missing_hashfunc _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_2.test_simple[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_2.test_simple[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_2.test_default_port _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_2.test_client_intermediate _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_client_no_intermediate ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_2.test_client_key_password _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_client_encrypted_key_requires_password _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1_2.test_verified _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_2.test_verified_with_context ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_context_combines_with_ca_certs ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_2.test_ca_dir_verified ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_2.test_invalid_common_name _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_2.test_verified_with_bad_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_2.test_wrap_socket_failure_resource_leak __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_verified_without_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestHTTPS_TLSv1_2.test_no_ssl ________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_2.test_unverified_ssl ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_unverified_with_ca_certs _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_hostname_false ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_specific_hostname _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_2.test_server_hostname ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_fingerprint_md5 ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_fingerprint_sha1 _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_fingerprint_sha256 ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_invalid_fingerprint ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_verify_none_and_bad_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_2.test_verify_none_and_good_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_good_fingerprint_and_hostname_mismatch _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_2.test_tunnel[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_2.test_tunnel[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_enhanced_ssl_connection _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_correct_system_time _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_wrong_system_time ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_set_ssl_version_to_tls_version ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_set_cert_default_cert_required ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_set_cert_inherits_cert_reqs_from_ssl_context[0] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_set_cert_inherits_cert_reqs_from_ssl_context[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_2.test_tls_protocol_name_of_socket _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_version_is_deprecated ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_no_tls_version_deprecation_with_ssl_context _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_tls_version_maximum_and_minimum ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_2.test_sslkeylogfile ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_sslkeylogfile_empty[None] ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_2.test_sslkeylogfile_empty[] ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_2.test_alpn_default[h11] __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_2.test_alpn_default[h2] ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_2.test_http2_probe_result_is_cached[h11] __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_2.test_http2_probe_result_is_cached[h2] ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_http2_probe_no_result_in_connect_error _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_http2_probe_no_result_in_ssl_error __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_default_ssl_context_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_context_ssl_version_uses_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_missing_hashfunc _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_3.test_simple[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_3.test_simple[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_3.test_default_port _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_3.test_client_intermediate _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_client_no_intermediate ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_3.test_client_key_password _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_client_encrypted_key_requires_password _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1_3.test_verified _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_3.test_verified_with_context ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_context_combines_with_ca_certs ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_3.test_ca_dir_verified ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_3.test_invalid_common_name _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_3.test_verified_with_bad_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_3.test_wrap_socket_failure_resource_leak __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_verified_without_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestHTTPS_TLSv1_3.test_no_ssl ________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_3.test_unverified_ssl ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_unverified_with_ca_certs _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_hostname_false ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_specific_hostname _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_3.test_server_hostname ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_fingerprint_md5 ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_fingerprint_sha1 _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_fingerprint_sha256 ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_invalid_fingerprint ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_verify_none_and_bad_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_3.test_verify_none_and_good_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_good_fingerprint_and_hostname_mismatch _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_3.test_tunnel[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_3.test_tunnel[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_enhanced_ssl_connection _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_correct_system_time _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_wrong_system_time ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_set_ssl_version_to_tls_version ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_set_cert_default_cert_required ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_set_cert_inherits_cert_reqs_from_ssl_context[0] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_set_cert_inherits_cert_reqs_from_ssl_context[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_3.test_tls_protocol_name_of_socket _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_version_is_deprecated ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_no_tls_version_deprecation_with_ssl_context _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_tls_version_maximum_and_minimum ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_3.test_sslkeylogfile ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_sslkeylogfile_empty[None] ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_3.test_sslkeylogfile_empty[] ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_3.test_alpn_default[h11] __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_3.test_alpn_default[h2] ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_3.test_http2_probe_result_is_cached[h11] __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_3.test_http2_probe_result_is_cached[h2] ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_http2_probe_no_result_in_connect_error _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_http2_probe_no_result_in_ssl_error __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_default_ssl_context_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_context_ssl_version_uses_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_missing_hashfunc _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_Hostname.test_can_validate_san[localhost] _____ loopback_host = 'localhost' tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture() def san_server( loopback_host: str, tmp_path_factory: pytest.TempPathFactory ) -> typing.Generator[ServerConfig]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() server_cert = ca.issue_cert(loopback_host) > with run_server_in_thread("https", loopback_host, tmpdir, ca, server_cert) as cfg: test/conftest.py:133: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) test/conftest.py:83: in run_server_in_thread with run_hypercorn_in_thread(host, server_certs, hypercorn_app) as port: /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs1/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs1/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPS_Hostname.test_common_name_without_san_fails[localhost] _ loopback_host = 'localhost' tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture() def no_san_server( loopback_host: str, tmp_path_factory: pytest.TempPathFactory ) -> typing.Generator[ServerConfig]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() server_cert = ca.issue_cert(common_name=loopback_host) > with run_server_in_thread("https", loopback_host, tmpdir, ca, server_cert) as cfg: test/conftest.py:145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) test/conftest.py:83: in run_server_in_thread with run_hypercorn_in_thread(host, server_certs, hypercorn_app) as port: /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs3/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs3/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPS_Hostname.test_common_name_without_san_with_different_common_name _ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture() def no_san_server_with_different_commmon_name( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[ServerConfig]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() server_cert = ca.issue_cert(common_name="example.com") > with run_server_in_thread("https", "localhost", tmpdir, ca, server_cert) as cfg: test/conftest.py:157: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) test/conftest.py:83: in run_server_in_thread with run_hypercorn_in_thread(host, server_certs, hypercorn_app) as port: /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs5/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs5/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPS_Hostname.test_hostname_checks_common_name_respected[localhost-True] _ loopback_host = 'localhost' tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture() def no_san_server( loopback_host: str, tmp_path_factory: pytest.TempPathFactory ) -> typing.Generator[ServerConfig]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() server_cert = ca.issue_cert(common_name=loopback_host) > with run_server_in_thread("https", loopback_host, tmpdir, ca, server_cert) as cfg: test/conftest.py:145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) test/conftest.py:83: in run_server_in_thread with run_hypercorn_in_thread(host, server_certs, hypercorn_app) as port: /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs6/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs6/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPS_Hostname.test_hostname_checks_common_name_respected[localhost-False] _ loopback_host = 'localhost' tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture() def no_san_server( loopback_host: str, tmp_path_factory: pytest.TempPathFactory ) -> typing.Generator[ServerConfig]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() server_cert = ca.issue_cert(common_name=loopback_host) > with run_server_in_thread("https", loopback_host, tmpdir, ca, server_cert) as cfg: test/conftest.py:145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) test/conftest.py:83: in run_server_in_thread with run_hypercorn_in_thread(host, server_certs, hypercorn_app) as port: /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs7/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs7/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ ____ ERROR at setup of TestHTTPS_Hostname.test_assert_hostname_invalid_san _____ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture def no_localhost_san_server( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[ServerConfig]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() # non localhost common name server_cert = ca.issue_cert("example.com") > with run_server_in_thread("https", "localhost", tmpdir, ca, server_cert) as cfg: test/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) test/conftest.py:83: in run_server_in_thread with run_hypercorn_in_thread(host, server_certs, hypercorn_app) as port: /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs10/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs10/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _____ ERROR at setup of TestHTTPS_Hostname.test_assert_hostname_invalid_cn _____ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture() def no_san_server_with_different_commmon_name( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[ServerConfig]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() server_cert = ca.issue_cert(common_name="example.com") > with run_server_in_thread("https", "localhost", tmpdir, ca, server_cert) as cfg: test/conftest.py:157: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) test/conftest.py:83: in run_server_in_thread with run_hypercorn_in_thread(host, server_certs, hypercorn_app) as port: /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs11/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs11/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _______________ ERROR at setup of TestHTTPWithoutSSL.test_simple _______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ ______________ ERROR at setup of TestHTTPSWithoutSSL.test_simple _______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _______________ ERROR at setup of TestPoolManager.test_redirect ________________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ ____________ ERROR at setup of TestPoolManager.test_redirect_twice _____________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestPoolManager.test_redirect_to_relative_url ________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestPoolManager.test_cross_host_redirect __________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestPoolManager.test_too_many_redirects ___________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestPoolManager.test_redirect_cross_host_remove_headers ___ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_redirect_cross_host_no_remove_headers _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_redirect_cross_host_set_removed_headers _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_redirect_without_preload_releases_connection _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_303_redirect_makes_request_lose_body __ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestPoolManager.test_unknown_scheme _____________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestPoolManager.test_raise_on_redirect ___________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestPoolManager.test_raise_on_status ____________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestPoolManager.test_missing_port ______________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________________ ERROR at setup of TestPoolManager.test_headers ________________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestPoolManager.test_headers_http_header_dict ________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_merge_headers_with_pool_manager_headers _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestPoolManager.test_headers_http_multi_header_multipart __ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________________ ERROR at setup of TestPoolManager.test_body __________________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestPoolManager.test_http_with_ssl_keywords _________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestPoolManager.test_http_with_server_hostname _______ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestPoolManager.test_http_with_ca_cert_dir _________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_encode_http_target[/echo_uri-/echo_uri?] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_encode_http_target[/echo_uri?q=1#fragment-/echo_uri?q=1] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_encode_http_target[/echo_uri?#-/echo_uri?] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_encode_http_target[/echo_uri#!-/echo_uri?] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_encode_http_target[/echo_uri#!#-/echo_uri?] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_encode_http_target[/echo_uri??#-/echo_uri??] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_encode_http_target[/echo_uri?%3f#-/echo_uri?%3F] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_encode_http_target[/echo_uri?%3F#-/echo_uri?%3F] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_encode_http_target[/echo_uri?[]-/echo_uri?%5B%5D] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestPoolManager.test_top_level_request ___________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_top_level_request_without_keyword_args _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestPoolManager.test_top_level_request_with_body ______ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_top_level_request_with_preload_content _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_top_level_request_with_decode_content _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestPoolManager.test_top_level_request_with_redirect ____ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestPoolManager.test_top_level_request_with_retries _____ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestPoolManager.test_top_level_request_with_timeout _____ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestPoolManager.test_request_with_json[None] ________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestPoolManager.test_request_with_json[headers1] ______ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestPoolManager.test_request_with_json[headers2] ______ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestPoolManager.test_request_with_json[headers3] ______ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestPoolManager.test_request_with_json[headers4] ______ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_top_level_request_with_json_with_httpheaderdict _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_top_level_request_with_body_and_json __ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestPoolManager.test_top_level_request_with_invalid_body __ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPProxyManager.test_basic_proxy ____________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ ___________ ERROR at setup of TestHTTPProxyManager.test_https_proxy ____________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_is_verified_http_proxy_to_http_target _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_is_verified_http_proxy_to_https_target _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_is_verified_https_proxy_to_http_target _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_is_verified_https_proxy_to_https_target _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_http_and_https_kwarg_ca_cert_data_proxy _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_https_proxy_with_proxy_ssl_context _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_https_proxy_pyopenssl_not_supported _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_https_proxy_forwarding_for_https _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPProxyManager.test_nagle_proxy ____________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_proxy_conn_fail_from_dns[http-http] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_proxy_conn_fail_from_dns[http-https] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_proxy_conn_fail_from_dns[https-http] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_proxy_conn_fail_from_dns[https-https] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPProxyManager.test_oldapi ______________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPProxyManager.test_proxy_verified __________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPProxyManager.test_redirect _____________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPProxyManager.test_cross_host_redirect ________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPProxyManager.test_cross_protocol_redirect ______ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPProxyManager.test_headers ______________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPProxyManager.test_https_headers ___________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_https_headers_forwarding_for_https _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPProxyManager.test_headerdict ____________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPProxyManager.test_proxy_pooling ___________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPProxyManager.test_proxy_pooling_ext _________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPProxyManager.test_scheme_host_case_insensitive ___ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_invalid_schema[127.0.0.1-Proxy URL had no scheme, should start with http:// or https://] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_invalid_schema[localhost:8080-Proxy URL had no scheme, should start with http:// or https://] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_invalid_schema[ftp://google.com-Proxy URL had unsupported scheme ftp, should use http:// or https://] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_assert_fingerprint_md5 _ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture def no_san_proxy_with_server( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() # only common name, no subject alternative names proxy_cert = ca.issue_cert(common_name="localhost") server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", "localhost", tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:186: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs13/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs13/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_assert_fingerprint_md5_non_matching _ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture def no_san_proxy_with_server( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() # only common name, no subject alternative names proxy_cert = ca.issue_cert(common_name="localhost") server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", "localhost", tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:186: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs14/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs14/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_assert_hostname[localhost] _ loopback_host = 'localhost' tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture def san_proxy_with_server( loopback_host: str, tmp_path_factory: pytest.TempPathFactory ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() proxy_cert = ca.issue_cert(loopback_host) server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", loopback_host, tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:170: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs15/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs15/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_assert_hostname[127.0.0.1] _ loopback_host = '127.0.0.1' tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture def san_proxy_with_server( loopback_host: str, tmp_path_factory: pytest.TempPathFactory ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() proxy_cert = ca.issue_cert(loopback_host) server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", loopback_host, tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:170: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs16/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs16/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_assert_hostname_non_matching[localhost] _ loopback_host = 'localhost' tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture def san_proxy_with_server( loopback_host: str, tmp_path_factory: pytest.TempPathFactory ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() proxy_cert = ca.issue_cert(loopback_host) server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", loopback_host, tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:170: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs17/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs17/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_assert_hostname_non_matching[127.0.0.1] _ loopback_host = '127.0.0.1' tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture def san_proxy_with_server( loopback_host: str, tmp_path_factory: pytest.TempPathFactory ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() proxy_cert = ca.issue_cert(loopback_host) server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", loopback_host, tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:170: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs18/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs18/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_hostname_verification _ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture def no_localhost_san_server( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[ServerConfig]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() # non localhost common name server_cert = ca.issue_cert("example.com") > with run_server_in_thread("https", "localhost", tmpdir, ca, server_cert) as cfg: test/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) test/conftest.py:83: in run_server_in_thread with run_hypercorn_in_thread(host, server_certs, hypercorn_app) as port: /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs19/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs19/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ ____ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_ipv4_san ____ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture def ipv4_san_proxy_with_server( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() # IP address in Subject Alternative Name proxy_cert = ca.issue_cert("127.0.0.1") server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", "127.0.0.1", tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:216: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs20/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs20/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ ____ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_ipv6_san ____ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture def ipv6_san_proxy_with_server( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() # IP addresses in Subject Alternative Name proxy_cert = ca.issue_cert("::1") server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", "::1", tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:233: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs21/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs21/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ __ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_no_san[http] __ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture def no_san_proxy_with_server( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() # only common name, no subject alternative names proxy_cert = ca.issue_cert(common_name="localhost") server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", "localhost", tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:186: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs22/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs22/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_no_san[https] __ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture def no_san_proxy_with_server( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() # only common name, no subject alternative names proxy_cert = ca.issue_cert(common_name="localhost") server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", "localhost", tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:186: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs23/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs23/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_no_san_hostname_checks_common_name _ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-0'), _retention_count=3, _retention_policy='all') @pytest.fixture def no_san_proxy_with_server( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() # only common name, no subject alternative names proxy_cert = ca.issue_cert(common_name="localhost") server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", "localhost", tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:186: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.13/contextlib.py:530: in enter_context result = _enter(cm) /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs24/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-0/certs24/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | ...<8 lines>... | ) | ^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | ...<4 lines>... | ) | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ~~~~~~~~~~~~~~~~~^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | ~~~~~~~~~~~^^^^^^^^^^^^^^^^ | OSError: [Errno 98] Address already in use +------------------------------------ =================================== FAILURES =================================== _______________ TestSOCKS4Proxy.test_socks_with_invalid_username _______________ self = dest_pair = ('example.com', 80), catch_errors = None @set_self_blocking def connect(self, dest_pair, catch_errors=None): """ Connects to the specified destination through a proxy. Uses the same API as socket's connect(). To select the proxy server, use set_proxy(). dest_pair - 2-tuple of (IP/hostname, port). """ if len(dest_pair) != 2 or dest_pair[0].startswith("["): # Probably IPv6, not supported -- raise an error, and hope # Happy Eyeballs (RFC6555) makes sure at least the IPv4 # connection works... raise socket.error("PySocks doesn't support IPv6: %s" % str(dest_pair)) dest_addr, dest_port = dest_pair if self.type == socket.SOCK_DGRAM: if not self._proxyconn: self.bind(("", 0)) dest_addr = socket.gethostbyname(dest_addr) # If the host address is INADDR_ANY or similar, reset the peer # address so that packets are received from any peer if dest_addr == "0.0.0.0" and not dest_port: self.proxy_peername = None else: self.proxy_peername = (dest_addr, dest_port) return (proxy_type, proxy_addr, proxy_port, rdns, username, password) = self.proxy # Do a minimal input check first if (not isinstance(dest_pair, (list, tuple)) or len(dest_pair) != 2 or not dest_addr or not isinstance(dest_port, int)): # Inputs failed, raise an error raise GeneralProxyError( "Invalid destination-connection (host, port) pair") # We set the timeout here so that we don't hang in connection or during # negotiation. super(socksocket, self).settimeout(self._timeout) if proxy_type is None: # Treat like regular socket object self.proxy_peername = dest_pair super(socksocket, self).settimeout(self._timeout) super(socksocket, self).connect((dest_addr, dest_port)) return proxy_addr = self._proxy_addr() try: # Initial connection to proxy server. > super(socksocket, self).connect(proxy_addr) E ConnectionRefusedError: [Errno 111] Connection refused /usr/lib/python3/dist-packages/socks.py:787: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def _new_conn(self) -> socks.socksocket: """ Establish a new connection via the SOCKS proxy. """ extra_kw: dict[str, typing.Any] = {} if self.source_address: extra_kw["source_address"] = self.source_address if self.socket_options: extra_kw["socket_options"] = self.socket_options try: > conn = socks.create_connection( (self.host, self.port), proxy_type=self._socks_options["socks_version"], proxy_addr=self._socks_options["proxy_host"], proxy_port=self._socks_options["proxy_port"], proxy_username=self._socks_options["username"], proxy_password=self._socks_options["password"], proxy_rdns=self._socks_options["rdns"], timeout=self.timeout, **extra_kw, ) urllib3/contrib/socks.py:110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/socks.py:209: in create_connection raise err /usr/lib/python3/dist-packages/socks.py:199: in create_connection sock.connect((remote_host, remote_port)) /usr/lib/python3/dist-packages/socks.py:47: in wrapper return function(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = dest_pair = ('example.com', 80), catch_errors = None @set_self_blocking def connect(self, dest_pair, catch_errors=None): """ Connects to the specified destination through a proxy. Uses the same API as socket's connect(). To select the proxy server, use set_proxy(). dest_pair - 2-tuple of (IP/hostname, port). """ if len(dest_pair) != 2 or dest_pair[0].startswith("["): # Probably IPv6, not supported -- raise an error, and hope # Happy Eyeballs (RFC6555) makes sure at least the IPv4 # connection works... raise socket.error("PySocks doesn't support IPv6: %s" % str(dest_pair)) dest_addr, dest_port = dest_pair if self.type == socket.SOCK_DGRAM: if not self._proxyconn: self.bind(("", 0)) dest_addr = socket.gethostbyname(dest_addr) # If the host address is INADDR_ANY or similar, reset the peer # address so that packets are received from any peer if dest_addr == "0.0.0.0" and not dest_port: self.proxy_peername = None else: self.proxy_peername = (dest_addr, dest_port) return (proxy_type, proxy_addr, proxy_port, rdns, username, password) = self.proxy # Do a minimal input check first if (not isinstance(dest_pair, (list, tuple)) or len(dest_pair) != 2 or not dest_addr or not isinstance(dest_port, int)): # Inputs failed, raise an error raise GeneralProxyError( "Invalid destination-connection (host, port) pair") # We set the timeout here so that we don't hang in connection or during # negotiation. super(socksocket, self).settimeout(self._timeout) if proxy_type is None: # Treat like regular socket object self.proxy_peername = dest_pair super(socksocket, self).settimeout(self._timeout) super(socksocket, self).connect((dest_addr, dest_port)) return proxy_addr = self._proxy_addr() try: # Initial connection to proxy server. super(socksocket, self).connect(proxy_addr) except socket.error as error: # Error while connecting to proxy self.close() if not catch_errors: proxy_addr, proxy_port = proxy_addr proxy_server = "{}:{}".format(proxy_addr, proxy_port) printable_type = PRINTABLE_PROXY_TYPES[proxy_type] msg = "Error connecting to {} proxy {}".format(printable_type, proxy_server) log.debug("%s due to: %s", msg, error) > raise ProxyConnectionError(msg, error) E socks.ProxyConnectionError: Error connecting to SOCKS4 proxy localhost:40651: [Errno 111] Connection refused /usr/lib/python3/dist-packages/socks.py:800: ProxyConnectionError During handling of the above exception, another exception occurred: self = def test_socks_with_invalid_username(self) -> None: def request_handler(listener: socket.socket) -> None: sock = listener.accept()[0] handler = handle_socks4_negotiation(sock, username=b"user") next(handler, None) self._start_server(request_handler) proxy_url = f"socks4a://{self.host}:{self.port}" with socks.SOCKSProxyManager(proxy_url, username="baduser") as pm: with pytest.raises(NewConnectionError, match="different user-ids"): > pm.request("GET", "http://example.com", retries=False) test/contrib/test_socks.py:723: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ urllib3/_request_methods.py:135: in request return self.request_encode_url( urllib3/_request_methods.py:182: in request_encode_url return self.urlopen(method, url, **extra_kw) urllib3/poolmanager.py:443: in urlopen response = conn.urlopen(method, u.request_uri, **kw) urllib3/connectionpool.py:841: in urlopen retries = retries.increment( urllib3/util/retry.py:449: in increment raise reraise(type(error), error, _stacktrace) urllib3/util/util.py:39: in reraise raise value urllib3/connectionpool.py:787: in urlopen response = self._make_request( urllib3/connectionpool.py:493: in _make_request conn.request( urllib3/connection.py:445: in request self.endheaders() /usr/lib/python3.13/http/client.py:1331: in endheaders self._send_output(message_body, encode_chunked=encode_chunked) /usr/lib/python3.13/http/client.py:1091: in _send_output self.send(msg) /usr/lib/python3.13/http/client.py:1035: in send self.connect() urllib3/connection.py:276: in connect self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _new_conn(self) -> socks.socksocket: """ Establish a new connection via the SOCKS proxy. """ extra_kw: dict[str, typing.Any] = {} if self.source_address: extra_kw["source_address"] = self.source_address if self.socket_options: extra_kw["socket_options"] = self.socket_options try: conn = socks.create_connection( (self.host, self.port), proxy_type=self._socks_options["socks_version"], proxy_addr=self._socks_options["proxy_host"], proxy_port=self._socks_options["proxy_port"], proxy_username=self._socks_options["username"], proxy_password=self._socks_options["password"], proxy_rdns=self._socks_options["rdns"], timeout=self.timeout, **extra_kw, ) except SocketTimeout as e: raise ConnectTimeoutError( self, f"Connection to {self.host} timed out. (connect timeout={self.timeout})", ) from e except socks.ProxyError as e: # This is fragile as hell, but it seems to be the only way to raise # useful errors here. if e.socket_err: error = e.socket_err if isinstance(error, SocketTimeout): raise ConnectTimeoutError( self, f"Connection to {self.host} timed out. (connect timeout={self.timeout})", ) from e else: # Adding `from e` messes with coverage somehow, so it's omitted. # See #2386. > raise NewConnectionError( self, f"Failed to establish a new connection: {error}" ) E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused urllib3/contrib/socks.py:141: NewConnectionError During handling of the above exception, another exception occurred: self = def test_socks_with_invalid_username(self) -> None: def request_handler(listener: socket.socket) -> None: sock = listener.accept()[0] handler = handle_socks4_negotiation(sock, username=b"user") next(handler, None) self._start_server(request_handler) proxy_url = f"socks4a://{self.host}:{self.port}" with socks.SOCKSProxyManager(proxy_url, username="baduser") as pm: > with pytest.raises(NewConnectionError, match="different user-ids"): E AssertionError: Regex pattern did not match. E Regex: 'different user-ids' E Input: ': Failed to establish a new connection: [Errno 111] Connection refused' test/contrib/test_socks.py:722: AssertionError ------------------------------ Captured log call ------------------------------- DEBUG urllib3.util.retry:retry.py:286 Converted retries value: False -> Retry(total=False, connect=None, read=None, redirect=0, status=None) DEBUG urllib3.connectionpool:connectionpool.py:241 Starting new HTTP connection (1): example.com:80 DEBUG socks:socks.py:799 Error connecting to SOCKS4 proxy localhost:40651 due to: [Errno 111] Connection refused =============================== warnings summary =============================== test/contrib/test_pyopenssl.py: 30 warnings test/contrib/test_socks.py: 17 warnings test/test_ssltransport.py: 12 warnings test/with_dummyserver/test_chunked_transfer.py: 23 warnings test/with_dummyserver/test_connectionpool.py: 5 warnings test/with_dummyserver/test_socketlevel.py: 114 warnings /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/dummyserver/socketserver.py:125: NoIPv6Warning: No IPv6 support. Falling back to IPv4. warnings.warn("No IPv6 support. Falling back to IPv4.", NoIPv6Warning) test/contrib/test_pyopenssl.py: 15 warnings test/with_dummyserver/test_socketlevel.py: 17 warnings /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/test/with_dummyserver/test_socketlevel.py:158: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated context = ssl.SSLContext(ssl_version) test/contrib/test_socks.py::TestSOCKSWithTLS::test_basic_request /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/test/contrib/test_socks.py:745: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated context = better_ssl.SSLContext(ssl.PROTOCOL_SSLv23) # type: ignore[misc] test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs0] test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs1] test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs2] /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/urllib3/util/ssl_.py:291: DeprecationWarning: ssl.TLSVersion.TLSv1 is deprecated context.minimum_version = ssl_minimum_version test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs0] test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs1] test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs2] /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/urllib3/util/ssl_.py:296: DeprecationWarning: ssl.TLSVersion.TLSv1 is deprecated context.maximum_version = ssl_maximum_version test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_client_cert_with_string_password test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_client_cert_with_bytes_password /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/test/with_dummyserver/test_socketlevel.py:366: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated ssl_context = ssl_.SSLContext(ssl_.PROTOCOL_SSLv23) test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_load_keyfile_with_invalid_password /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/test/with_dummyserver/test_socketlevel.py:385: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated context = ssl_.SSLContext(ssl_.PROTOCOL_SSLv23) test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_load_invalid_cert_file /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build/test/with_dummyserver/test_socketlevel.py:395: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated context = ssl_.SSLContext(ssl_.PROTOCOL_SSLv23) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED test/contrib/test_socks.py::TestSOCKS4Proxy::test_socks_with_invalid_username - AssertionError: Regex pattern did not match. Regex: 'different user-ids' Input: ': Failed to establish a new connection: [Errno 111] Connection refused' ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_simple[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_simple[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_default_port - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_client_intermediate - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_client_no_intermediate - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_client_key_password - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_client_encrypted_key_requires_password - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_verified - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_verified_with_context - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_context_combines_with_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_ca_dir_verified - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_invalid_common_name - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_verified_with_bad_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_wrap_socket_failure_resource_leak - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_verified_without_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_no_ssl - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_unverified_ssl - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_ssl_unverified_with_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_assert_hostname_false - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_assert_specific_hostname - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_server_hostname - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_assert_fingerprint_md5 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_assert_fingerprint_sha1 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_assert_fingerprint_sha256 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_assert_invalid_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_verify_none_and_bad_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_verify_none_and_good_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_good_fingerprint_and_hostname_mismatch - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_tunnel[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_tunnel[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_enhanced_ssl_connection - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_ssl_correct_system_time - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_ssl_wrong_system_time - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_set_ssl_version_to_tls_version - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_set_cert_default_cert_required - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_set_cert_inherits_cert_reqs_from_ssl_context[0] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_set_cert_inherits_cert_reqs_from_ssl_context[2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_tls_protocol_name_of_socket - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_ssl_version_is_deprecated - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_no_tls_version_deprecation_with_ssl_context - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_tls_version_maximum_and_minimum - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_sslkeylogfile - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_sslkeylogfile_empty[None] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_sslkeylogfile_empty[] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_alpn_default[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_alpn_default[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_http2_probe_result_is_cached[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_http2_probe_result_is_cached[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_http2_probe_no_result_in_connect_error - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_http2_probe_no_result_in_ssl_error - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_default_ssl_context_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_ssl_context_ssl_version_uses_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_assert_missing_hashfunc - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_simple[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_simple[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_default_port - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_client_intermediate - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_client_no_intermediate - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_client_key_password - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_client_encrypted_key_requires_password - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_verified - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_verified_with_context - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_context_combines_with_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_ca_dir_verified - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_invalid_common_name - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_verified_with_bad_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_wrap_socket_failure_resource_leak - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_verified_without_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_no_ssl - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_unverified_ssl - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_ssl_unverified_with_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_assert_hostname_false - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_assert_specific_hostname - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_server_hostname - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_assert_fingerprint_md5 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_assert_fingerprint_sha1 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_assert_fingerprint_sha256 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_assert_invalid_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_verify_none_and_bad_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_verify_none_and_good_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_good_fingerprint_and_hostname_mismatch - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_tunnel[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_tunnel[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_enhanced_ssl_connection - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_ssl_correct_system_time - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_ssl_wrong_system_time - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_set_ssl_version_to_tls_version - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_set_cert_default_cert_required - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_set_cert_inherits_cert_reqs_from_ssl_context[0] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_set_cert_inherits_cert_reqs_from_ssl_context[2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_tls_protocol_name_of_socket - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_ssl_version_is_deprecated - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_no_tls_version_deprecation_with_ssl_context - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_tls_version_maximum_and_minimum - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_sslkeylogfile - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_sslkeylogfile_empty[None] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_sslkeylogfile_empty[] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_alpn_default[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_alpn_default[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_http2_probe_result_is_cached[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_http2_probe_result_is_cached[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_http2_probe_no_result_in_connect_error - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_http2_probe_no_result_in_ssl_error - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_default_ssl_context_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_ssl_context_ssl_version_uses_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_assert_missing_hashfunc - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_simple[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_simple[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_default_port - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_client_intermediate - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_client_no_intermediate - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_client_key_password - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_client_encrypted_key_requires_password - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_verified - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_verified_with_context - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_context_combines_with_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_ca_dir_verified - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_invalid_common_name - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_verified_with_bad_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_wrap_socket_failure_resource_leak - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_verified_without_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_no_ssl - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_unverified_ssl - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_ssl_unverified_with_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_assert_hostname_false - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_assert_specific_hostname - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_server_hostname - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_assert_fingerprint_md5 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_assert_fingerprint_sha1 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_assert_fingerprint_sha256 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_assert_invalid_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_verify_none_and_bad_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_verify_none_and_good_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_good_fingerprint_and_hostname_mismatch - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_tunnel[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_tunnel[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_enhanced_ssl_connection - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_ssl_correct_system_time - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_ssl_wrong_system_time - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_set_ssl_version_to_tls_version - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_set_cert_default_cert_required - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_set_cert_inherits_cert_reqs_from_ssl_context[0] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_set_cert_inherits_cert_reqs_from_ssl_context[2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_tls_protocol_name_of_socket - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_ssl_version_is_deprecated - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_no_tls_version_deprecation_with_ssl_context - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_tls_version_maximum_and_minimum - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_sslkeylogfile - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_sslkeylogfile_empty[None] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_sslkeylogfile_empty[] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_alpn_default[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_alpn_default[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_http2_probe_result_is_cached[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_http2_probe_result_is_cached[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_http2_probe_no_result_in_connect_error - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_http2_probe_no_result_in_ssl_error - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_default_ssl_context_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_ssl_context_ssl_version_uses_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_assert_missing_hashfunc - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_simple[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_simple[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_default_port - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_client_intermediate - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_client_no_intermediate - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_client_key_password - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_client_encrypted_key_requires_password - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_verified - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_verified_with_context - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_context_combines_with_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_ca_dir_verified - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_invalid_common_name - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_verified_with_bad_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_wrap_socket_failure_resource_leak - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_verified_without_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_no_ssl - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_unverified_ssl - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_ssl_unverified_with_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_assert_hostname_false - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_assert_specific_hostname - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_server_hostname - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_assert_fingerprint_md5 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_assert_fingerprint_sha1 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_assert_fingerprint_sha256 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_assert_invalid_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_verify_none_and_bad_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_verify_none_and_good_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_good_fingerprint_and_hostname_mismatch - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_tunnel[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_tunnel[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_enhanced_ssl_connection - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_ssl_correct_system_time - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_ssl_wrong_system_time - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_set_ssl_version_to_tls_version - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_set_cert_default_cert_required - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_set_cert_inherits_cert_reqs_from_ssl_context[0] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_set_cert_inherits_cert_reqs_from_ssl_context[2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_tls_protocol_name_of_socket - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_ssl_version_is_deprecated - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_no_tls_version_deprecation_with_ssl_context - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_tls_version_maximum_and_minimum - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_sslkeylogfile - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_sslkeylogfile_empty[None] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_sslkeylogfile_empty[] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_alpn_default[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_alpn_default[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_http2_probe_result_is_cached[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_http2_probe_result_is_cached[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_http2_probe_no_result_in_connect_error - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_http2_probe_no_result_in_ssl_error - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_default_ssl_context_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_ssl_context_ssl_version_uses_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_assert_missing_hashfunc - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connection.py::test_returns_urllib3_HTTPResponse - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connection.py::test_audit_event - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connection.py::test_does_not_release_conn - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connection.py::test_releases_conn - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connection.py::test_double_getresponse - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connection.py::test_connection_state_properties - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connection.py::test_set_tunnel_is_reset - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connection.py::test_invalid_tunnel_scheme - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_http2_test_error[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_http2_test_error[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_get - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_debug_log - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_post_url - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_urlopen_put - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_wrong_specific_method - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_upload - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_one_name_multiple_values - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_request_method_body - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_unicode_upload - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_nagle - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_options[socket_options0] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_options[socket_options1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_disable_default_socket_options[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_disable_default_socket_options[socket_options1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_defaults_are_applied - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_connection_error_retries - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_timeout_success - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_constructor[1-expect_settimeout_calls0] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_constructor[None-expect_settimeout_calls1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_constructor[timeout2-expect_settimeout_calls2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_constructor[timeout3-expect_settimeout_calls3] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_constructor[timeout4-expect_settimeout_calls4] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_parameter[1-expect_settimeout_calls0] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_parameter[None-expect_settimeout_calls1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_parameter[timeout2-expect_settimeout_calls2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_parameter[timeout3-expect_settimeout_calls3] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_parameter[timeout4-expect_settimeout_calls4] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_tunnel - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_redirect_relative_url_no_deprecation - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_redirect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_303_redirect_makes_request_lose_body - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_bad_connect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_keepalive - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_keepalive_close - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_post_with_urlencode - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_post_with_multipart - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_post_with_multipart__iter__ - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_check_gzip - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_check_deflate - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_bad_decode - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_connection_count - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_connection_count_bigpool - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_partial_response - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_lazy_load_twice - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_for_double_release - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_release_conn_parameter - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_dns_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_invalid_method_not_allowed[ ] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_invalid_method_not_allowed[\r] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_invalid_method_not_allowed[\n] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_invalid_method_not_allowed[\x00] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_percent_encode_invalid_target_chars - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_source_address - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_source_address_error[invalid_source_address0-False] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_source_address_error[invalid_source_address1-True] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_stream_keepalive - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_read_chunked_short_circuit - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_read_chunked_on_closed_response - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_chunked_gzip - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_cleanup_on_connection_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_mixed_case_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_preserves_path_dot_segments - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_default_user_agent_header - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[True-None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[True-headers1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[True-headers2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[True-headers3] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[True-headers4] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[True-headers5] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[False-None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[False-headers1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[False-headers2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[False-headers3] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[False-headers4] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[False-headers5] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_no_user_agent_header - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_skip_header_non_supported[True-Content-Length] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_skip_header_non_supported[True-content-length] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_skip_header_non_supported[False-Content-Length] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_skip_header_non_supported[False-content-length] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[dict-True-True] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[dict-True-False] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[dict-False-True] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[dict-False-False] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[HTTPHeaderDict-True-True] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[HTTPHeaderDict-True-False] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[HTTPHeaderDict-False-True] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[HTTPHeaderDict-False-False] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_request_chunked_is_deprecated - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_bytes_header - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_non_ascii_user_agent[Sch\xf6nefeld/1.18.0_0] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_non_ascii_user_agent[Sch\xf6nefeld/1.18.0_1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_max_retry - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_disabled_retry - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_read_retries - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_read_total_retries - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_retries_wrong_forcelist - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_default_method_forcelist_retried - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_retries_wrong_method_list - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_read_retries_unsuccessful - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_retry_reuse_safe - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_retry_return_in_response - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_retry_redirect_history - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_multi_redirect_history - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetryAfter::test_retry_after - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetryAfter::test_redirect_after - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestFileBodiesOnRetryOrRedirect::test_retries_put_filehandle - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestFileBodiesOnRetryOrRedirect::test_redirect_put_file - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestFileBodiesOnRetryOrRedirect::test_redirect_with_failed_tell - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetryPoolSize::test_pool_size_retry - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRedirectPoolSize::test_pool_size_redirect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_simple[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_simple[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_default_port - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_client_intermediate - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_client_no_intermediate - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_client_key_password - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_client_encrypted_key_requires_password - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_verified - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_verified_with_context - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_context_combines_with_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_ca_dir_verified - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_invalid_common_name - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_verified_with_bad_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_wrap_socket_failure_resource_leak - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_verified_without_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_no_ssl - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_unverified_ssl - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_ssl_unverified_with_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_assert_hostname_false - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_assert_specific_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_server_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_assert_fingerprint_md5 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_assert_fingerprint_sha1 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_assert_fingerprint_sha256 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_assert_invalid_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_verify_none_and_bad_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_verify_none_and_good_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_good_fingerprint_and_hostname_mismatch - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_tunnel[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_tunnel[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_enhanced_ssl_connection - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_ssl_correct_system_time - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_ssl_wrong_system_time - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_set_ssl_version_to_tls_version - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_set_cert_default_cert_required - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_set_cert_inherits_cert_reqs_from_ssl_context[0] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_set_cert_inherits_cert_reqs_from_ssl_context[2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_tls_protocol_name_of_socket - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_ssl_version_is_deprecated - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_no_tls_version_deprecation_with_ssl_context - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_tls_version_maximum_and_minimum - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_sslkeylogfile - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_sslkeylogfile_empty[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_sslkeylogfile_empty[] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_alpn_default[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_alpn_default[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_http2_probe_result_is_cached[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_http2_probe_result_is_cached[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_http2_probe_no_result_in_connect_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_http2_probe_no_result_in_ssl_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_default_ssl_context_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_ssl_context_ssl_version_uses_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_assert_missing_hashfunc - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_simple[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_simple[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_default_port - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_client_intermediate - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_client_no_intermediate - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_client_key_password - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_client_encrypted_key_requires_password - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_verified - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_verified_with_context - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_context_combines_with_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_ca_dir_verified - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_invalid_common_name - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_verified_with_bad_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_wrap_socket_failure_resource_leak - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_verified_without_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_no_ssl - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_unverified_ssl - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_ssl_unverified_with_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_assert_hostname_false - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_assert_specific_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_server_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_assert_fingerprint_md5 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_assert_fingerprint_sha1 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_assert_fingerprint_sha256 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_assert_invalid_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_verify_none_and_bad_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_verify_none_and_good_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_good_fingerprint_and_hostname_mismatch - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_tunnel[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_tunnel[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_enhanced_ssl_connection - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_ssl_correct_system_time - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_ssl_wrong_system_time - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_set_ssl_version_to_tls_version - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_set_cert_default_cert_required - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_set_cert_inherits_cert_reqs_from_ssl_context[0] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_set_cert_inherits_cert_reqs_from_ssl_context[2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_tls_protocol_name_of_socket - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_ssl_version_is_deprecated - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_no_tls_version_deprecation_with_ssl_context - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_tls_version_maximum_and_minimum - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_sslkeylogfile - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_sslkeylogfile_empty[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_sslkeylogfile_empty[] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_alpn_default[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_alpn_default[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_http2_probe_result_is_cached[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_http2_probe_result_is_cached[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_http2_probe_no_result_in_connect_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_http2_probe_no_result_in_ssl_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_default_ssl_context_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_ssl_context_ssl_version_uses_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_assert_missing_hashfunc - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_simple[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_simple[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_default_port - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_client_intermediate - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_client_no_intermediate - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_client_key_password - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_client_encrypted_key_requires_password - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_verified - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_verified_with_context - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_context_combines_with_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_ca_dir_verified - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_invalid_common_name - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_verified_with_bad_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_wrap_socket_failure_resource_leak - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_verified_without_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_no_ssl - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_unverified_ssl - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_ssl_unverified_with_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_assert_hostname_false - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_assert_specific_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_server_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_assert_fingerprint_md5 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_assert_fingerprint_sha1 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_assert_fingerprint_sha256 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_assert_invalid_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_verify_none_and_bad_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_verify_none_and_good_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_good_fingerprint_and_hostname_mismatch - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_tunnel[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_tunnel[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_enhanced_ssl_connection - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_ssl_correct_system_time - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_ssl_wrong_system_time - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_set_ssl_version_to_tls_version - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_set_cert_default_cert_required - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_set_cert_inherits_cert_reqs_from_ssl_context[0] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_set_cert_inherits_cert_reqs_from_ssl_context[2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_tls_protocol_name_of_socket - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_ssl_version_is_deprecated - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_no_tls_version_deprecation_with_ssl_context - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_tls_version_maximum_and_minimum - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_sslkeylogfile - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_sslkeylogfile_empty[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_sslkeylogfile_empty[] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_alpn_default[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_alpn_default[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_http2_probe_result_is_cached[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_http2_probe_result_is_cached[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_http2_probe_no_result_in_connect_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_http2_probe_no_result_in_ssl_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_default_ssl_context_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_ssl_context_ssl_version_uses_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_assert_missing_hashfunc - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_simple[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_simple[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_default_port - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_client_intermediate - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_client_no_intermediate - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_client_key_password - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_client_encrypted_key_requires_password - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_verified - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_verified_with_context - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_context_combines_with_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_ca_dir_verified - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_invalid_common_name - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_verified_with_bad_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_wrap_socket_failure_resource_leak - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_verified_without_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_no_ssl - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_unverified_ssl - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_ssl_unverified_with_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_assert_hostname_false - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_assert_specific_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_server_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_assert_fingerprint_md5 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_assert_fingerprint_sha1 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_assert_fingerprint_sha256 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_assert_invalid_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_verify_none_and_bad_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_verify_none_and_good_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_good_fingerprint_and_hostname_mismatch - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_tunnel[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_tunnel[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_enhanced_ssl_connection - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_ssl_correct_system_time - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_ssl_wrong_system_time - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_set_ssl_version_to_tls_version - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_set_cert_default_cert_required - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_set_cert_inherits_cert_reqs_from_ssl_context[0] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_set_cert_inherits_cert_reqs_from_ssl_context[2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_tls_protocol_name_of_socket - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_ssl_version_is_deprecated - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_no_tls_version_deprecation_with_ssl_context - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_tls_version_maximum_and_minimum - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_sslkeylogfile - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_sslkeylogfile_empty[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_sslkeylogfile_empty[] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_alpn_default[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_alpn_default[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_http2_probe_result_is_cached[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_http2_probe_result_is_cached[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_http2_probe_no_result_in_connect_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_http2_probe_no_result_in_ssl_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_default_ssl_context_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_ssl_context_ssl_version_uses_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_assert_missing_hashfunc - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_Hostname::test_can_validate_san[localhost] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_Hostname::test_common_name_without_san_fails[localhost] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_Hostname::test_common_name_without_san_with_different_common_name - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_Hostname::test_hostname_checks_common_name_respected[localhost-True] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_Hostname::test_hostname_checks_common_name_respected[localhost-False] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_Hostname::test_assert_hostname_invalid_san - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_Hostname::test_assert_hostname_invalid_cn - Exception: most likely failed to start server ERROR test/with_dummyserver/test_no_ssl.py::TestHTTPWithoutSSL::test_simple - Exception: most likely failed to start server ERROR test/with_dummyserver/test_no_ssl.py::TestHTTPSWithoutSSL::test_simple - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_redirect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_redirect_twice - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_redirect_to_relative_url - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_cross_host_redirect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_too_many_redirects - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_redirect_cross_host_remove_headers - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_redirect_cross_host_no_remove_headers - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_redirect_cross_host_set_removed_headers - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_redirect_without_preload_releases_connection - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_303_redirect_makes_request_lose_body - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_unknown_scheme - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_raise_on_redirect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_raise_on_status - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_missing_port - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_headers - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_headers_http_header_dict - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_merge_headers_with_pool_manager_headers - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_headers_http_multi_header_multipart - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_body - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_http_with_ssl_keywords - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_http_with_server_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_http_with_ca_cert_dir - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_encode_http_target[/echo_uri-/echo_uri?] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_encode_http_target[/echo_uri?q=1#fragment-/echo_uri?q=1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_encode_http_target[/echo_uri?#-/echo_uri?] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_encode_http_target[/echo_uri#!-/echo_uri?] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_encode_http_target[/echo_uri#!#-/echo_uri?] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_encode_http_target[/echo_uri??#-/echo_uri??] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_encode_http_target[/echo_uri?%3f#-/echo_uri?%3F] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_encode_http_target[/echo_uri?%3F#-/echo_uri?%3F] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_encode_http_target[/echo_uri?[]-/echo_uri?%5B%5D] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_without_keyword_args - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_with_body - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_with_preload_content - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_with_decode_content - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_with_redirect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_with_retries - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_with_timeout - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_request_with_json[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_request_with_json[headers1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_request_with_json[headers2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_request_with_json[headers3] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_request_with_json[headers4] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_with_json_with_httpheaderdict - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_with_body_and_json - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_with_invalid_body - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_basic_proxy - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_https_proxy - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_is_verified_http_proxy_to_http_target - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_is_verified_http_proxy_to_https_target - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_is_verified_https_proxy_to_http_target - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_is_verified_https_proxy_to_https_target - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_http_and_https_kwarg_ca_cert_data_proxy - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_https_proxy_with_proxy_ssl_context - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_https_proxy_pyopenssl_not_supported - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_https_proxy_forwarding_for_https - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_nagle_proxy - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_proxy_conn_fail_from_dns[http-http] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_proxy_conn_fail_from_dns[http-https] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_proxy_conn_fail_from_dns[https-http] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_proxy_conn_fail_from_dns[https-https] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_oldapi - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_proxy_verified - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_redirect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_cross_host_redirect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_cross_protocol_redirect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_headers - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_https_headers - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_https_headers_forwarding_for_https - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_headerdict - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_proxy_pooling - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_proxy_pooling_ext - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_scheme_host_case_insensitive - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_invalid_schema[127.0.0.1-Proxy URL had no scheme, should start with http:// or https://] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_invalid_schema[localhost:8080-Proxy URL had no scheme, should start with http:// or https://] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_invalid_schema[ftp://google.com-Proxy URL had unsupported scheme ftp, should use http:// or https://] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_assert_fingerprint_md5 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_assert_fingerprint_md5_non_matching - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_assert_hostname[localhost] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_assert_hostname[127.0.0.1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_assert_hostname_non_matching[localhost] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_assert_hostname_non_matching[127.0.0.1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_hostname_verification - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_ipv4_san - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_ipv6_san - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_no_san[http] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_no_san[https] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_no_san_hostname_checks_common_name - Exception: most likely failed to start server = 1 failed, 1363 passed, 60 skipped, 41 deselected, 16 xfailed, 244 warnings, 667 errors in 316.55s (0:05:16) = :0: ResourceWarning: unclosed ResourceWarning: Enable tracemalloc to get the object allocation traceback :0: ResourceWarning: unclosed ResourceWarning: Enable tracemalloc to get the object allocation traceback :0: ResourceWarning: unclosed ResourceWarning: Enable tracemalloc to get the object allocation traceback :0: ResourceWarning: unclosed ResourceWarning: Enable tracemalloc to get the object allocation traceback E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.13_urllib3/build; python3.13 -m pytest -k "not requires_network and not test_recent_date" I: pybuild base:311: cd /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build; python3.12 -m pytest -k "not requires_network and not test_recent_date" ============================= test session starts ============================== platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 rootdir: /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build configfile: pyproject.toml plugins: timeout-2.3.1, typeguard-4.4.1, anyio-4.7.0 collected 2147 items / 41 deselected / 1 skipped / 2106 selected test/contrib/test_pyopenssl.py ......................................... [ 1%] ..........................ssssEEEsEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 5%] EEEEEEEEEExxEEEEEEEEsEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEExxE [ 8%] EEEEEEEsEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEExxEEEEEEEEsEEEEE [ 12%] EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEExxEEEEE...................... [ 15%] ............sssss.... [ 16%] test/contrib/test_pyopenssl_dependencies.py .. [ 16%] test/contrib/test_socks.py .................F. [ 17%] test/test_collections.py ............................................. [ 19%] test/test_compatibility.py .. [ 19%] test/test_connection.py ................................................ [ 22%] ........................................................................ [ 25%] ........................................................................ [ 28%] ........................................................................ [ 32%] .............. [ 33%] test/test_connectionpool.py ............................................ [ 35%] .............................. [ 36%] test/test_exceptions.py ................ [ 37%] test/test_fields.py .................... [ 38%] test/test_filepost.py ......... [ 38%] test/test_http2_connection.py .................. [ 39%] test/test_no_ssl.py .. [ 39%] test/test_poolmanager.py s.................................... [ 41%] test/test_proxymanager.py ...... [ 41%] test/test_queue_monkeypatch.py . [ 41%] test/test_response.py ..........................................ssssssss [ 44%] sssss................................................................... [ 47%] ......... [ 47%] test/test_retry.py ..................................................... [ 50%] ........ [ 50%] test/test_ssl.py ........................................... [ 52%] test/test_ssltransport.py ................. [ 53%] test/test_util.py ...................................................... [ 56%] ........................................................................ [ 59%] ........................................................................ [ 63%] .........................................s.ss..s.ss..................... [ 66%] ................................................................. [ 69%] test/test_wait.py ............. [ 70%] test/with_dummyserver/test_chunked_transfer.py ....................... [ 71%] test/with_dummyserver/test_connection.py EEEEEEEE [ 71%] test/with_dummyserver/test_connectionpool.py .......EEEEEEEEEEEEEEEEEEEE [ 72%] EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 76%] EEEEEEEEEEEEEEEEEEEEE [ 77%] test/with_dummyserver/test_https.py EEEsEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 79%] EEEEEEEEEEEEEEEExxEEEEEEEEsEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 82%] EEExxEEEEEEEEsEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEExxEEEEEEEE [ 85%] sEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEExxEEEEEE.sE.sEEE..ssEE. [ 89%] ssss [ 89%] test/with_dummyserver/test_no_ssl.py EE [ 89%] test/with_dummyserver/test_poolmanager.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 91%] EEEEEEEEEEEEEEEEEs [ 91%] test/with_dummyserver/test_proxy_poolmanager.py EEEEEEEEEEEEEEEEsEEEEEEE [ 93%] EEEEEEEsEEEEsEEsException ignored in: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/_pytest/_code/code.py", line 198, in __init__ def __init__( ResourceWarning: unclosed Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/_pytest/_code/code.py", line 198, in __init__ def __init__( ResourceWarning: unclosed Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/_pytest/_code/code.py", line 198, in __init__ def __init__( ResourceWarning: unclosed Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/_pytest/_code/code.py", line 198, in __init__ def __init__( ResourceWarning: unclosed Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/_pytest/_code/code.py", line 198, in __init__ def __init__( ResourceWarning: unclosed Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/_pytest/_code/code.py", line 198, in __init__ def __init__( ResourceWarning: unclosed EEEEEE [ 94%] test/with_dummyserver/test_socketlevel.py .............................. [ 95%] .......F..........sssss......s......................................s.s. [ 98%] s..................... [100%] ==================================== ERRORS ==================================== ______________ ERROR at setup of TestHTTPS_TLSv1.test_simple[h11] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ ______________ ERROR at setup of TestHTTPS_TLSv1.test_simple[h2] _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1.test_default_port ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1.test_client_intermediate __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_client_no_intermediate _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1.test_client_key_password __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_client_encrypted_key_requires_password _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestHTTPS_TLSv1.test_verified ________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1.test_verified_with_context _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_context_combines_with_ca_certs _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1.test_ca_dir_verified ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1.test_invalid_common_name __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1.test_verified_with_bad_ca_certs _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1.test_wrap_socket_failure_resource_leak ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_verified_without_ca_certs _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________________ ERROR at setup of TestHTTPS_TLSv1.test_no_ssl _________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1.test_unverified_ssl _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1.test_ssl_unverified_with_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1.test_assert_hostname_false _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_assert_specific_hostname ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1.test_server_hostname ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_assert_fingerprint_md5 _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_assert_fingerprint_sha1 ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_assert_fingerprint_sha256 _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1.test_assert_invalid_fingerprint _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_verify_none_and_bad_fingerprint ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1.test_verify_none_and_good_fingerprint ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_good_fingerprint_and_hostname_mismatch _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1.test_tunnel[h11] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1.test_tunnel[h2] _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_enhanced_ssl_connection ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_ssl_correct_system_time ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1.test_ssl_wrong_system_time _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_set_ssl_version_to_tls_version _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_set_cert_default_cert_required _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_set_cert_inherits_cert_reqs_from_ssl_context[0] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_set_cert_inherits_cert_reqs_from_ssl_context[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1.test_tls_protocol_name_of_socket ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_ssl_version_is_deprecated _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_no_tls_version_deprecation_with_ssl_context _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_tls_version_maximum_and_minimum ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1.test_sslkeylogfile _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_sslkeylogfile_empty[None] _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1.test_sslkeylogfile_empty[] _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1.test_alpn_default[h11] ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1.test_alpn_default[h2] ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1.test_http2_probe_result_is_cached[h11] ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1.test_http2_probe_result_is_cached[h2] ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_http2_probe_no_result_in_connect_error _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1.test_http2_probe_no_result_in_ssl_error ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_default_ssl_context_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_ssl_context_ssl_version_uses_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_assert_missing_hashfunc ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_1.test_simple[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_1.test_simple[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_1.test_default_port _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_1.test_client_intermediate _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_client_no_intermediate ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_1.test_client_key_password _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_client_encrypted_key_requires_password _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1_1.test_verified _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_1.test_verified_with_context ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_context_combines_with_ca_certs ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_1.test_ca_dir_verified ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_1.test_invalid_common_name _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_1.test_verified_with_bad_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_1.test_wrap_socket_failure_resource_leak __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_verified_without_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestHTTPS_TLSv1_1.test_no_ssl ________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_1.test_unverified_ssl ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_unverified_with_ca_certs _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_hostname_false ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_specific_hostname _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_1.test_server_hostname ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_fingerprint_md5 ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_fingerprint_sha1 _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_fingerprint_sha256 ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_invalid_fingerprint ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_verify_none_and_bad_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_1.test_verify_none_and_good_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_good_fingerprint_and_hostname_mismatch _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_1.test_tunnel[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_1.test_tunnel[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_enhanced_ssl_connection _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_correct_system_time _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_wrong_system_time ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_set_ssl_version_to_tls_version ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_set_cert_default_cert_required ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_set_cert_inherits_cert_reqs_from_ssl_context[0] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_set_cert_inherits_cert_reqs_from_ssl_context[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_1.test_tls_protocol_name_of_socket _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_version_is_deprecated ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_no_tls_version_deprecation_with_ssl_context _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_tls_version_maximum_and_minimum ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_1.test_sslkeylogfile ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_sslkeylogfile_empty[None] ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_1.test_sslkeylogfile_empty[] ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_1.test_alpn_default[h11] __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_1.test_alpn_default[h2] ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_1.test_http2_probe_result_is_cached[h11] __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_1.test_http2_probe_result_is_cached[h2] ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_http2_probe_no_result_in_connect_error _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_http2_probe_no_result_in_ssl_error __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_default_ssl_context_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_context_ssl_version_uses_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_missing_hashfunc _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_2.test_simple[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_2.test_simple[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_2.test_default_port _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_2.test_client_intermediate _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_client_no_intermediate ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_2.test_client_key_password _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_client_encrypted_key_requires_password _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1_2.test_verified _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_2.test_verified_with_context ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_context_combines_with_ca_certs ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_2.test_ca_dir_verified ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_2.test_invalid_common_name _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_2.test_verified_with_bad_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_2.test_wrap_socket_failure_resource_leak __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_verified_without_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestHTTPS_TLSv1_2.test_no_ssl ________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_2.test_unverified_ssl ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_unverified_with_ca_certs _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_hostname_false ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_specific_hostname _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_2.test_server_hostname ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_fingerprint_md5 ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_fingerprint_sha1 _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_fingerprint_sha256 ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_invalid_fingerprint ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_verify_none_and_bad_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_2.test_verify_none_and_good_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_good_fingerprint_and_hostname_mismatch _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_2.test_tunnel[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_2.test_tunnel[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_enhanced_ssl_connection _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_correct_system_time _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_wrong_system_time ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_set_ssl_version_to_tls_version ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_set_cert_default_cert_required ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_set_cert_inherits_cert_reqs_from_ssl_context[0] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_set_cert_inherits_cert_reqs_from_ssl_context[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_2.test_tls_protocol_name_of_socket _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_version_is_deprecated ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_no_tls_version_deprecation_with_ssl_context _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_tls_version_maximum_and_minimum ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_2.test_sslkeylogfile ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_sslkeylogfile_empty[None] ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_2.test_sslkeylogfile_empty[] ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_2.test_alpn_default[h11] __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_2.test_alpn_default[h2] ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_2.test_http2_probe_result_is_cached[h11] __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_2.test_http2_probe_result_is_cached[h2] ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_http2_probe_no_result_in_connect_error _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_http2_probe_no_result_in_ssl_error __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_default_ssl_context_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_context_ssl_version_uses_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_missing_hashfunc _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_3.test_simple[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_3.test_simple[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_3.test_default_port _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_3.test_client_intermediate _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_client_no_intermediate ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_3.test_client_key_password _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_client_encrypted_key_requires_password _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1_3.test_verified _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_3.test_verified_with_context ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_context_combines_with_ca_certs ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_3.test_ca_dir_verified ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_3.test_invalid_common_name _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_3.test_verified_with_bad_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_3.test_wrap_socket_failure_resource_leak __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_verified_without_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestHTTPS_TLSv1_3.test_no_ssl ________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_3.test_unverified_ssl ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_unverified_with_ca_certs _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_hostname_false ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_specific_hostname _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_3.test_server_hostname ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_fingerprint_md5 ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_fingerprint_sha1 _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_fingerprint_sha256 ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_invalid_fingerprint ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_verify_none_and_bad_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_3.test_verify_none_and_good_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_good_fingerprint_and_hostname_mismatch _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_3.test_tunnel[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_3.test_tunnel[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_enhanced_ssl_connection _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_correct_system_time _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_wrong_system_time ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_set_ssl_version_to_tls_version ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_set_cert_default_cert_required ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_set_cert_inherits_cert_reqs_from_ssl_context[0] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_set_cert_inherits_cert_reqs_from_ssl_context[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_3.test_tls_protocol_name_of_socket _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_version_is_deprecated ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_no_tls_version_deprecation_with_ssl_context _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_tls_version_maximum_and_minimum ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_3.test_sslkeylogfile ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_sslkeylogfile_empty[None] ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_3.test_sslkeylogfile_empty[] ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_3.test_alpn_default[h11] __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_3.test_alpn_default[h2] ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_3.test_http2_probe_result_is_cached[h11] __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_3.test_http2_probe_result_is_cached[h2] ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_http2_probe_no_result_in_connect_error _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_http2_probe_no_result_in_ssl_error __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_default_ssl_context_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_context_ssl_version_uses_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_missing_hashfunc _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of test_returns_urllib3_HTTPResponse ______________ @pytest.fixture() def pool() -> typing.Generator[HTTPConnectionPool]: > server.setup_class() test/with_dummyserver/test_connection.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ ______________________ ERROR at setup of test_audit_event ______________________ @pytest.fixture() def pool() -> typing.Generator[HTTPConnectionPool]: > server.setup_class() test/with_dummyserver/test_connection.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _________________ ERROR at setup of test_does_not_release_conn _________________ @pytest.fixture() def pool() -> typing.Generator[HTTPConnectionPool]: > server.setup_class() test/with_dummyserver/test_connection.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _____________________ ERROR at setup of test_releases_conn _____________________ @pytest.fixture() def pool() -> typing.Generator[HTTPConnectionPool]: > server.setup_class() test/with_dummyserver/test_connection.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ __________________ ERROR at setup of test_double_getresponse ___________________ @pytest.fixture() def pool() -> typing.Generator[HTTPConnectionPool]: > server.setup_class() test/with_dummyserver/test_connection.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ ______________ ERROR at setup of test_connection_state_properties ______________ @pytest.fixture() def pool() -> typing.Generator[HTTPConnectionPool]: > server.setup_class() test/with_dummyserver/test_connection.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ __________________ ERROR at setup of test_set_tunnel_is_reset __________________ @pytest.fixture() def pool() -> typing.Generator[HTTPConnectionPool]: > server.setup_class() test/with_dummyserver/test_connection.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _________________ ERROR at setup of test_invalid_tunnel_scheme _________________ @pytest.fixture() def pool() -> typing.Generator[HTTPConnectionPool]: > server.setup_class() test/with_dummyserver/test_connection.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _______ ERROR at setup of TestConnectionPool.test_http2_test_error[h11] ________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ ________ ERROR at setup of TestConnectionPool.test_http2_test_error[h2] ________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________________ ERROR at setup of TestConnectionPool.test_get _________________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestConnectionPool.test_debug_log ______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestConnectionPool.test_post_url ______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestConnectionPool.test_urlopen_put _____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestConnectionPool.test_wrong_specific_method ________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestConnectionPool.test_upload _______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestConnectionPool.test_one_name_multiple_values ______ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestConnectionPool.test_request_method_body _________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestConnectionPool.test_unicode_upload ___________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestConnectionPool.test_nagle ________________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestConnectionPool.test_socket_options[socket_options0] ___ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestConnectionPool.test_socket_options[socket_options1] ___ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_disable_default_socket_options[None] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_disable_default_socket_options[socket_options1] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestConnectionPool.test_defaults_are_applied ________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestConnectionPool.test_connection_error_retries ______ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestConnectionPool.test_timeout_success ___________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_constructor[1-expect_settimeout_calls0] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_constructor[None-expect_settimeout_calls1] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_constructor[timeout2-expect_settimeout_calls2] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_constructor[timeout3-expect_settimeout_calls3] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_constructor[timeout4-expect_settimeout_calls4] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_parameter[1-expect_settimeout_calls0] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_parameter[None-expect_settimeout_calls1] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_parameter[timeout2-expect_settimeout_calls2] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_parameter[timeout3-expect_settimeout_calls3] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_socket_timeout_updated_on_reuse_parameter[timeout4-expect_settimeout_calls4] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestConnectionPool.test_tunnel _______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_redirect_relative_url_no_deprecation _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestConnectionPool.test_redirect ______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_303_redirect_makes_request_lose_body _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestConnectionPool.test_bad_connect _____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestConnectionPool.test_keepalive ______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestConnectionPool.test_keepalive_close ___________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestConnectionPool.test_post_with_urlencode _________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestConnectionPool.test_post_with_multipart _________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestConnectionPool.test_post_with_multipart__iter__ _____ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestConnectionPool.test_check_gzip _____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestConnectionPool.test_check_deflate ____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestConnectionPool.test_bad_decode _____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestConnectionPool.test_connection_count __________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestConnectionPool.test_connection_count_bigpool ______ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestConnectionPool.test_partial_response __________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestConnectionPool.test_lazy_load_twice ___________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestConnectionPool.test_for_double_release _________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestConnectionPool.test_release_conn_parameter _______ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestConnectionPool.test_dns_error ______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestConnectionPool.test_invalid_method_not_allowed[ ] ____ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestConnectionPool.test_invalid_method_not_allowed[\r] ___ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestConnectionPool.test_invalid_method_not_allowed[\n] ___ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestConnectionPool.test_invalid_method_not_allowed[\x00] __ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_percent_encode_invalid_target_chars _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestConnectionPool.test_source_address ___________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_source_address_error[invalid_source_address0-False] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_source_address_error[invalid_source_address1-True] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestConnectionPool.test_stream_keepalive __________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestConnectionPool.test_read_chunked_short_circuit _____ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestConnectionPool.test_read_chunked_on_closed_response ___ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestConnectionPool.test_chunked_gzip ____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestConnectionPool.test_cleanup_on_connection_error _____ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestConnectionPool.test_mixed_case_hostname _________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestConnectionPool.test_preserves_path_dot_segments _____ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestConnectionPool.test_default_user_agent_header ______ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[True-None] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[True-headers1] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[True-headers2] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[True-headers3] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[True-headers4] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[True-headers5] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[False-None] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[False-headers1] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[False-headers2] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[False-headers3] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[False-headers4] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_header_not_sent_twice[False-headers5] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestConnectionPool.test_no_user_agent_header ________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_skip_header_non_supported[True-Content-Length] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_skip_header_non_supported[True-content-length] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_skip_header_non_supported[False-Content-Length] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_skip_header_non_supported[False-content-length] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_headers_not_modified_by_request[dict-True-True] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_headers_not_modified_by_request[dict-True-False] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_headers_not_modified_by_request[dict-False-True] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_headers_not_modified_by_request[dict-False-False] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_headers_not_modified_by_request[HTTPHeaderDict-True-True] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_headers_not_modified_by_request[HTTPHeaderDict-True-False] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_headers_not_modified_by_request[HTTPHeaderDict-False-True] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_headers_not_modified_by_request[HTTPHeaderDict-False-False] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestConnectionPool.test_request_chunked_is_deprecated ____ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestConnectionPool.test_bytes_header ____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_non_ascii_user_agent[Sch\xf6nefeld/1.18.0_0] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestConnectionPool.test_user_agent_non_ascii_user_agent[Sch\xf6nefeld/1.18.0_1] _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________________ ERROR at setup of TestRetry.test_max_retry __________________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _______________ ERROR at setup of TestRetry.test_disabled_retry ________________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________________ ERROR at setup of TestRetry.test_read_retries _________________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestRetry.test_read_total_retries ______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestRetry.test_retries_wrong_forcelist ___________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestRetry.test_default_method_forcelist_retried _______ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestRetry.test_retries_wrong_method_list __________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestRetry.test_read_retries_unsuccessful __________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestRetry.test_retry_reuse_safe _______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestRetry.test_retry_return_in_response ___________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestRetry.test_retry_redirect_history ____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestRetry.test_multi_redirect_history ____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestRetryAfter.test_retry_after _______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _____________ ERROR at setup of TestRetryAfter.test_redirect_after _____________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestFileBodiesOnRetryOrRedirect.test_retries_put_filehandle _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ ___ ERROR at setup of TestFileBodiesOnRetryOrRedirect.test_redirect_put_file ___ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestFileBodiesOnRetryOrRedirect.test_redirect_with_failed_tell _ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestRetryPoolSize.test_pool_size_retry ___________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ ________ ERROR at setup of TestRedirectPoolSize.test_pool_size_redirect ________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ ______________ ERROR at setup of TestHTTPS_TLSv1.test_simple[h11] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1.test_simple[h2] _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1.test_default_port ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1.test_client_intermediate __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_client_no_intermediate _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1.test_client_key_password __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_client_encrypted_key_requires_password _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestHTTPS_TLSv1.test_verified ________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1.test_verified_with_context _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_context_combines_with_ca_certs _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1.test_ca_dir_verified ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1.test_invalid_common_name __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1.test_verified_with_bad_ca_certs _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1.test_wrap_socket_failure_resource_leak ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_verified_without_ca_certs _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________________ ERROR at setup of TestHTTPS_TLSv1.test_no_ssl _________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1.test_unverified_ssl _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1.test_ssl_unverified_with_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1.test_assert_hostname_false _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_assert_specific_hostname ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1.test_server_hostname ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_assert_fingerprint_md5 _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_assert_fingerprint_sha1 ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_assert_fingerprint_sha256 _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1.test_assert_invalid_fingerprint _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_verify_none_and_bad_fingerprint ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1.test_verify_none_and_good_fingerprint ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_good_fingerprint_and_hostname_mismatch _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1.test_tunnel[h11] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1.test_tunnel[h2] _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_enhanced_ssl_connection ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_ssl_correct_system_time ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1.test_ssl_wrong_system_time _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_set_ssl_version_to_tls_version _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_set_cert_default_cert_required _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_set_cert_inherits_cert_reqs_from_ssl_context[0] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_set_cert_inherits_cert_reqs_from_ssl_context[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1.test_tls_protocol_name_of_socket ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_ssl_version_is_deprecated _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_no_tls_version_deprecation_with_ssl_context _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1.test_tls_version_maximum_and_minimum ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1.test_sslkeylogfile _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1.test_sslkeylogfile_empty[None] _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1.test_sslkeylogfile_empty[] _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1.test_alpn_default[h11] ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1.test_alpn_default[h2] ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1.test_http2_probe_result_is_cached[h11] ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1.test_http2_probe_result_is_cached[h2] ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_http2_probe_no_result_in_connect_error _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1.test_http2_probe_no_result_in_ssl_error ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_default_ssl_context_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1.test_ssl_context_ssl_version_uses_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1.test_assert_missing_hashfunc ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_1.test_simple[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_1.test_simple[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_1.test_default_port _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_1.test_client_intermediate _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_client_no_intermediate ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_1.test_client_key_password _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_client_encrypted_key_requires_password _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1_1.test_verified _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_1.test_verified_with_context ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_context_combines_with_ca_certs ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_1.test_ca_dir_verified ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_1.test_invalid_common_name _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_1.test_verified_with_bad_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_1.test_wrap_socket_failure_resource_leak __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_verified_without_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestHTTPS_TLSv1_1.test_no_ssl ________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_1.test_unverified_ssl ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_unverified_with_ca_certs _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_hostname_false ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_specific_hostname _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_1.test_server_hostname ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_fingerprint_md5 ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_fingerprint_sha1 _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_fingerprint_sha256 ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_invalid_fingerprint ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_verify_none_and_bad_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_1.test_verify_none_and_good_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_good_fingerprint_and_hostname_mismatch _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_1.test_tunnel[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_1.test_tunnel[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_enhanced_ssl_connection _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_correct_system_time _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_wrong_system_time ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_set_ssl_version_to_tls_version ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_set_cert_default_cert_required ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_set_cert_inherits_cert_reqs_from_ssl_context[0] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_set_cert_inherits_cert_reqs_from_ssl_context[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_1.test_tls_protocol_name_of_socket _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_version_is_deprecated ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_no_tls_version_deprecation_with_ssl_context _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_1.test_tls_version_maximum_and_minimum ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_1.test_sslkeylogfile ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_1.test_sslkeylogfile_empty[None] ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_1.test_sslkeylogfile_empty[] ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_1.test_alpn_default[h11] __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_1.test_alpn_default[h2] ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_1.test_http2_probe_result_is_cached[h11] __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_1.test_http2_probe_result_is_cached[h2] ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_http2_probe_no_result_in_connect_error _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_http2_probe_no_result_in_ssl_error __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_default_ssl_context_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_1.test_ssl_context_ssl_version_uses_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_1.test_assert_missing_hashfunc _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_2.test_simple[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_2.test_simple[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_2.test_default_port _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_2.test_client_intermediate _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_client_no_intermediate ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_2.test_client_key_password _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_client_encrypted_key_requires_password _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1_2.test_verified _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_2.test_verified_with_context ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_context_combines_with_ca_certs ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_2.test_ca_dir_verified ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_2.test_invalid_common_name _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_2.test_verified_with_bad_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_2.test_wrap_socket_failure_resource_leak __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_verified_without_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestHTTPS_TLSv1_2.test_no_ssl ________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_2.test_unverified_ssl ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_unverified_with_ca_certs _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_hostname_false ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_specific_hostname _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_2.test_server_hostname ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_fingerprint_md5 ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_fingerprint_sha1 _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_fingerprint_sha256 ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_invalid_fingerprint ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_verify_none_and_bad_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_2.test_verify_none_and_good_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_good_fingerprint_and_hostname_mismatch _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_2.test_tunnel[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_2.test_tunnel[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_enhanced_ssl_connection _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_correct_system_time _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_wrong_system_time ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_set_ssl_version_to_tls_version ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_set_cert_default_cert_required ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_set_cert_inherits_cert_reqs_from_ssl_context[0] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_set_cert_inherits_cert_reqs_from_ssl_context[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_2.test_tls_protocol_name_of_socket _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_version_is_deprecated ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_no_tls_version_deprecation_with_ssl_context _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_2.test_tls_version_maximum_and_minimum ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_2.test_sslkeylogfile ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_2.test_sslkeylogfile_empty[None] ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_2.test_sslkeylogfile_empty[] ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_2.test_alpn_default[h11] __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_2.test_alpn_default[h2] ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_2.test_http2_probe_result_is_cached[h11] __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_2.test_http2_probe_result_is_cached[h2] ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_http2_probe_no_result_in_connect_error _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_http2_probe_no_result_in_ssl_error __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_default_ssl_context_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_2.test_ssl_context_ssl_version_uses_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_2.test_assert_missing_hashfunc _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_3.test_simple[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_3.test_simple[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_3.test_default_port _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_3.test_client_intermediate _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_client_no_intermediate ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_3.test_client_key_password _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_client_encrypted_key_requires_password _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPS_TLSv1_3.test_verified _______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_3.test_verified_with_context ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_context_combines_with_ca_certs ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_3.test_ca_dir_verified ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestHTTPS_TLSv1_3.test_invalid_common_name _________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_3.test_verified_with_bad_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_3.test_wrap_socket_failure_resource_leak __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_verified_without_ca_certs ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______________ ERROR at setup of TestHTTPS_TLSv1_3.test_no_ssl ________________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_3.test_unverified_ssl ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_unverified_with_ca_certs _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_hostname_false ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_specific_hostname _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPS_TLSv1_3.test_server_hostname ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_fingerprint_md5 ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_fingerprint_sha1 _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_fingerprint_sha256 ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_invalid_fingerprint ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_verify_none_and_bad_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_3.test_verify_none_and_good_fingerprint ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_good_fingerprint_and_hostname_mismatch _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_3.test_tunnel[h11] _____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPS_TLSv1_3.test_tunnel[h2] ______________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_enhanced_ssl_connection _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_correct_system_time _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_wrong_system_time ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_set_ssl_version_to_tls_version ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_set_cert_default_cert_required ____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_set_cert_inherits_cert_reqs_from_ssl_context[0] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_set_cert_inherits_cert_reqs_from_ssl_context[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPS_TLSv1_3.test_tls_protocol_name_of_socket _____ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_version_is_deprecated ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_no_tls_version_deprecation_with_ssl_context _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPS_TLSv1_3.test_tls_version_maximum_and_minimum ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPS_TLSv1_3.test_sslkeylogfile ____________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestHTTPS_TLSv1_3.test_sslkeylogfile_empty[None] ______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPS_TLSv1_3.test_sslkeylogfile_empty[] ________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_3.test_alpn_default[h11] __________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPS_TLSv1_3.test_alpn_default[h2] ___________ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_3.test_http2_probe_result_is_cached[h11] __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestHTTPS_TLSv1_3.test_http2_probe_result_is_cached[h2] ___ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_http2_probe_no_result_in_connect_error _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_http2_probe_no_result_in_ssl_error __ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_default_ssl_context_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPS_TLSv1_3.test_ssl_context_ssl_version_uses_ssl_min_max_versions _ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPS_TLSv1_3.test_assert_missing_hashfunc _______ @pytest.fixture(scope="session") def supported_tls_versions() -> typing.AbstractSet[str | None]: # We have to create an actual TLS connection # to test if the TLS version is not disabled by # OpenSSL config. Ubuntu 20.04 specifically # disables TLSv1 and TLSv1.1. tls_versions = set() _server = HTTPSHypercornDummyServerTestCase > _server.setup_class() test/conftest.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestHTTPS_Hostname.test_can_validate_san[localhost] _____ loopback_host = 'localhost' tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-1'), _retention_count=3, _retention_policy='all') @pytest.fixture() def san_server( loopback_host: str, tmp_path_factory: pytest.TempPathFactory ) -> typing.Generator[ServerConfig]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() server_cert = ca.issue_cert(loopback_host) > with run_server_in_thread("https", loopback_host, tmpdir, ca, server_cert) as cfg: test/conftest.py:133: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) test/conftest.py:83: in run_server_in_thread with run_hypercorn_in_thread(host, server_certs, hypercorn_app) as port: /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs1/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs1/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPS_Hostname.test_common_name_without_san_fails[localhost] _ loopback_host = 'localhost' tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-1'), _retention_count=3, _retention_policy='all') @pytest.fixture() def no_san_server( loopback_host: str, tmp_path_factory: pytest.TempPathFactory ) -> typing.Generator[ServerConfig]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() server_cert = ca.issue_cert(common_name=loopback_host) > with run_server_in_thread("https", loopback_host, tmpdir, ca, server_cert) as cfg: test/conftest.py:145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) test/conftest.py:83: in run_server_in_thread with run_hypercorn_in_thread(host, server_certs, hypercorn_app) as port: /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs3/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs3/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPS_Hostname.test_common_name_without_san_with_different_common_name _ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-1'), _retention_count=3, _retention_policy='all') @pytest.fixture() def no_san_server_with_different_commmon_name( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[ServerConfig]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() server_cert = ca.issue_cert(common_name="example.com") > with run_server_in_thread("https", "localhost", tmpdir, ca, server_cert) as cfg: test/conftest.py:157: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) test/conftest.py:83: in run_server_in_thread with run_hypercorn_in_thread(host, server_certs, hypercorn_app) as port: /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs5/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs5/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception During handling of the above exception, another exception occurred: cls = func = . at 0xf2aaaac8> when = 'setup' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, ) -> CallInfo[TResult]: """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :type func: Callable[[], _pytest.runner.TResult] :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: TResult | None = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:242: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E + Exception Group Traceback (most recent call last): E | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server E | config.bind = await nursery.start( E | ^^^^^^^^^^^^^^^^^^^^ E | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start E | raise exc.exceptions[0] from None E | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve E | await worker_serve( E | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve E | async with trio.open_nursery() as lifespan_nursery: E | ^^^^^^^^^^^^^^^^^^^ E | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ E | raise combined_error_from_nursery E | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) E +-+---------------- 1 ---------------- E | Exception Group Traceback (most recent call last): E | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve E | async with trio.open_nursery() as server_nursery: E | ^^^^^^^^^^^^^^^^^^^ E | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ E | raise combined_error_from_nursery E | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) E +-+---------------- 1 ---------------- E | Traceback (most recent call last): E | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve E | sock.listen(config.backlog) E | OSError: [Errno 98] Address already in use E +------------------------------------ E E During handling of the above exception, another exception occurred: E E Traceback (most recent call last): E File "/usr/lib/python3.12/contextlib.py", line 446, in __exit__ E def __exit__(self, exctype, excinst, exctb): E E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPS_Hostname.test_hostname_checks_common_name_respected[localhost-True] _ loopback_host = 'localhost' tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-1'), _retention_count=3, _retention_policy='all') @pytest.fixture() def no_san_server( loopback_host: str, tmp_path_factory: pytest.TempPathFactory ) -> typing.Generator[ServerConfig]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() server_cert = ca.issue_cert(common_name=loopback_host) > with run_server_in_thread("https", loopback_host, tmpdir, ca, server_cert) as cfg: test/conftest.py:145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) test/conftest.py:83: in run_server_in_thread with run_hypercorn_in_thread(host, server_certs, hypercorn_app) as port: /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs6/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs6/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPS_Hostname.test_hostname_checks_common_name_respected[localhost-False] _ loopback_host = 'localhost' tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-1'), _retention_count=3, _retention_policy='all') @pytest.fixture() def no_san_server( loopback_host: str, tmp_path_factory: pytest.TempPathFactory ) -> typing.Generator[ServerConfig]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() server_cert = ca.issue_cert(common_name=loopback_host) > with run_server_in_thread("https", loopback_host, tmpdir, ca, server_cert) as cfg: test/conftest.py:145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) test/conftest.py:83: in run_server_in_thread with run_hypercorn_in_thread(host, server_certs, hypercorn_app) as port: /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs7/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs7/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ ____ ERROR at setup of TestHTTPS_Hostname.test_assert_hostname_invalid_san _____ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-1'), _retention_count=3, _retention_policy='all') @pytest.fixture def no_localhost_san_server( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[ServerConfig]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() # non localhost common name server_cert = ca.issue_cert("example.com") > with run_server_in_thread("https", "localhost", tmpdir, ca, server_cert) as cfg: test/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) test/conftest.py:83: in run_server_in_thread with run_hypercorn_in_thread(host, server_certs, hypercorn_app) as port: /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs10/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs10/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _____ ERROR at setup of TestHTTPS_Hostname.test_assert_hostname_invalid_cn _____ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-1'), _retention_count=3, _retention_policy='all') @pytest.fixture() def no_san_server_with_different_commmon_name( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[ServerConfig]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() server_cert = ca.issue_cert(common_name="example.com") > with run_server_in_thread("https", "localhost", tmpdir, ca, server_cert) as cfg: test/conftest.py:157: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) test/conftest.py:83: in run_server_in_thread with run_hypercorn_in_thread(host, server_certs, hypercorn_app) as port: /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs11/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs11/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _______________ ERROR at setup of TestHTTPWithoutSSL.test_simple _______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception During handling of the above exception, another exception occurred: cls = func = . at 0xf2914898> when = 'setup' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, ) -> CallInfo[TResult]: """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :type func: Callable[[], _pytest.runner.TResult] :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: TResult | None = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:242: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:90: in pytest_runtest_setup yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3/dist-packages/_pytest/nodes.py", line 235, in ihook E @property E E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ ______________ ERROR at setup of TestHTTPSWithoutSSL.test_simple _______________ cls = @classmethod def setup_class(cls) -> None: with contextlib.ExitStack() as stack: > cls.port = stack.enter_context( run_hypercorn_in_thread(cls.host, cls.certs, hypercorn_app) ) dummyserver/testcase.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'alpn_protocols': ['h2', 'http/1.1'], 'ca_certs': '/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3....'/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/certs/server.crt', ...} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _______________ ERROR at setup of TestPoolManager.test_redirect ________________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ ____________ ERROR at setup of TestPoolManager.test_redirect_twice _____________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestPoolManager.test_redirect_to_relative_url ________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestPoolManager.test_cross_host_redirect __________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestPoolManager.test_too_many_redirects ___________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestPoolManager.test_redirect_cross_host_remove_headers ___ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_redirect_cross_host_no_remove_headers _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_redirect_cross_host_set_removed_headers _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_redirect_without_preload_releases_connection _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_303_redirect_makes_request_lose_body __ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestPoolManager.test_unknown_scheme _____________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestPoolManager.test_raise_on_redirect ___________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestPoolManager.test_raise_on_status ____________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestPoolManager.test_missing_port ______________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________________ ERROR at setup of TestPoolManager.test_headers ________________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestPoolManager.test_headers_http_header_dict ________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_merge_headers_with_pool_manager_headers _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestPoolManager.test_headers_http_multi_header_multipart __ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________________ ERROR at setup of TestPoolManager.test_body __________________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestPoolManager.test_http_with_ssl_keywords _________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestPoolManager.test_http_with_server_hostname _______ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _________ ERROR at setup of TestPoolManager.test_http_with_ca_cert_dir _________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_encode_http_target[/echo_uri-/echo_uri?] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_encode_http_target[/echo_uri?q=1#fragment-/echo_uri?q=1] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_encode_http_target[/echo_uri?#-/echo_uri?] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_encode_http_target[/echo_uri#!-/echo_uri?] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_encode_http_target[/echo_uri#!#-/echo_uri?] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_encode_http_target[/echo_uri??#-/echo_uri??] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_encode_http_target[/echo_uri?%3f#-/echo_uri?%3F] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_encode_http_target[/echo_uri?%3F#-/echo_uri?%3F] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_encode_http_target[/echo_uri?[]-/echo_uri?%5B%5D] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestPoolManager.test_top_level_request ___________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_top_level_request_without_keyword_args _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestPoolManager.test_top_level_request_with_body ______ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_top_level_request_with_preload_content _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_top_level_request_with_decode_content _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestPoolManager.test_top_level_request_with_redirect ____ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestPoolManager.test_top_level_request_with_retries _____ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____ ERROR at setup of TestPoolManager.test_top_level_request_with_timeout _____ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestPoolManager.test_request_with_json[None] ________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestPoolManager.test_request_with_json[headers1] ______ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestPoolManager.test_request_with_json[headers2] ______ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestPoolManager.test_request_with_json[headers3] ______ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______ ERROR at setup of TestPoolManager.test_request_with_json[headers4] ______ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_top_level_request_with_json_with_httpheaderdict _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestPoolManager.test_top_level_request_with_body_and_json __ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __ ERROR at setup of TestPoolManager.test_top_level_request_with_invalid_body __ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_poolmanager.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:208: in setup_class cls.port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = {}, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPProxyManager.test_basic_proxy ____________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 52, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ ___________ ERROR at setup of TestHTTPProxyManager.test_https_proxy ____________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_is_verified_http_proxy_to_http_target _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_is_verified_http_proxy_to_https_target _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_is_verified_https_proxy_to_http_target _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_is_verified_https_proxy_to_https_target _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_http_and_https_kwarg_ca_cert_data_proxy _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_https_proxy_with_proxy_ssl_context _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_https_proxy_pyopenssl_not_supported _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_https_proxy_forwarding_for_https _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___________ ERROR at setup of TestHTTPProxyManager.test_nagle_proxy ____________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_proxy_conn_fail_from_dns[http-http] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_proxy_conn_fail_from_dns[http-https] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_proxy_conn_fail_from_dns[https-http] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_proxy_conn_fail_from_dns[https-https] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ______________ ERROR at setup of TestHTTPProxyManager.test_oldapi ______________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPProxyManager.test_proxy_verified __________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPProxyManager.test_redirect _____________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _______ ERROR at setup of TestHTTPProxyManager.test_cross_host_redirect ________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____ ERROR at setup of TestHTTPProxyManager.test_cross_protocol_redirect ______ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _____________ ERROR at setup of TestHTTPProxyManager.test_headers ______________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPProxyManager.test_https_headers ___________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_https_headers_forwarding_for_https _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ____________ ERROR at setup of TestHTTPProxyManager.test_headerdict ____________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception __________ ERROR at setup of TestHTTPProxyManager.test_proxy_pooling ___________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ________ ERROR at setup of TestHTTPProxyManager.test_proxy_pooling_ext _________ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ___ ERROR at setup of TestHTTPProxyManager.test_scheme_host_case_insensitive ___ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_invalid_schema[127.0.0.1-Proxy URL had no scheme, should start with http:// or https://] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_invalid_schema[localhost:8080-Proxy URL had no scheme, should start with http:// or https://] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPProxyManager.test_invalid_schema[ftp://google.com-Proxy URL had unsupported scheme ftp, should use http:// or https://] _ cls = @classmethod def setup_class(cls) -> None: > super().setup_class() test/with_dummyserver/test_proxy_poolmanager.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dummyserver/testcase.py:257: in setup_class cls.http_port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost', certs = None, app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception _ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_assert_fingerprint_md5 _ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-1'), _retention_count=3, _retention_policy='all') @pytest.fixture def no_san_proxy_with_server( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() # only common name, no subject alternative names proxy_cert = ca.issue_cert(common_name="localhost") server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", "localhost", tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:186: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs13/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs13/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_assert_fingerprint_md5_non_matching _ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-1'), _retention_count=3, _retention_policy='all') @pytest.fixture def no_san_proxy_with_server( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() # only common name, no subject alternative names proxy_cert = ca.issue_cert(common_name="localhost") server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", "localhost", tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:186: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs14/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs14/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_assert_hostname[localhost] _ loopback_host = 'localhost' tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-1'), _retention_count=3, _retention_policy='all') @pytest.fixture def san_proxy_with_server( loopback_host: str, tmp_path_factory: pytest.TempPathFactory ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() proxy_cert = ca.issue_cert(loopback_host) server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", loopback_host, tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:170: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs15/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs15/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_assert_hostname[127.0.0.1] _ loopback_host = '127.0.0.1' tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-1'), _retention_count=3, _retention_policy='all') @pytest.fixture def san_proxy_with_server( loopback_host: str, tmp_path_factory: pytest.TempPathFactory ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() proxy_cert = ca.issue_cert(loopback_host) server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", loopback_host, tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:170: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs16/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs16/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_assert_hostname_non_matching[localhost] _ loopback_host = 'localhost' tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-1'), _retention_count=3, _retention_policy='all') @pytest.fixture def san_proxy_with_server( loopback_host: str, tmp_path_factory: pytest.TempPathFactory ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() proxy_cert = ca.issue_cert(loopback_host) server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", loopback_host, tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:170: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs17/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs17/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_assert_hostname_non_matching[127.0.0.1] _ loopback_host = '127.0.0.1' tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-1'), _retention_count=3, _retention_policy='all') @pytest.fixture def san_proxy_with_server( loopback_host: str, tmp_path_factory: pytest.TempPathFactory ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() proxy_cert = ca.issue_cert(loopback_host) server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", loopback_host, tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:170: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs18/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs18/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_hostname_verification _ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-1'), _retention_count=3, _retention_policy='all') @pytest.fixture def no_localhost_san_server( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[ServerConfig]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() # non localhost common name server_cert = ca.issue_cert("example.com") > with run_server_in_thread("https", "localhost", tmpdir, ca, server_cert) as cfg: test/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) test/conftest.py:83: in run_server_in_thread with run_hypercorn_in_thread(host, server_certs, hypercorn_app) as port: /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs19/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs19/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ ____ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_ipv4_san ____ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-1'), _retention_count=3, _retention_policy='all') @pytest.fixture def ipv4_san_proxy_with_server( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() # IP address in Subject Alternative Name proxy_cert = ca.issue_cert("127.0.0.1") server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", "127.0.0.1", tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:216: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs20/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs20/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ ____ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_ipv6_san ____ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-1'), _retention_count=3, _retention_policy='all') @pytest.fixture def ipv6_san_proxy_with_server( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() # IP addresses in Subject Alternative Name proxy_cert = ca.issue_cert("::1") server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", "::1", tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:233: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs21/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs21/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ __ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_no_san[http] __ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-1'), _retention_count=3, _retention_policy='all') @pytest.fixture def no_san_proxy_with_server( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() # only common name, no subject alternative names proxy_cert = ca.issue_cert(common_name="localhost") server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", "localhost", tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:186: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs22/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs22/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_no_san[https] __ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-1'), _retention_count=3, _retention_policy='all') @pytest.fixture def no_san_proxy_with_server( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() # only common name, no subject alternative names proxy_cert = ca.issue_cert(common_name="localhost") server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", "localhost", tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:186: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs23/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs23/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ _ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_no_san_hostname_checks_common_name _ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/pytest-of-pbuilder1/pytest-1'), _retention_count=3, _retention_policy='all') @pytest.fixture def no_san_proxy_with_server( tmp_path_factory: pytest.TempPathFactory, ) -> typing.Generator[tuple[ServerConfig, ServerConfig]]: tmpdir = tmp_path_factory.mktemp("certs") ca = trustme.CA() # only common name, no subject alternative names proxy_cert = ca.issue_cert(common_name="localhost") server_cert = ca.issue_cert("localhost") > with run_server_and_proxy_in_thread( "https", "localhost", tmpdir, ca, proxy_cert, server_cert ) as cfg: test/conftest.py:186: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) test/conftest.py:103: in run_server_and_proxy_in_thread port = stack.enter_context( /usr/lib/python3.12/contextlib.py:526: in enter_context result = _enter(cm) /usr/lib/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ host = 'localhost' certs = {'certfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs24/server.pem', 'keyfile': '/tmp/pytest-of-pbuilder1/pytest-1/certs24/server.key'} app = @contextlib.contextmanager def run_hypercorn_in_thread( host: str, certs: dict[str, typing.Any] | None, app: hypercorn.typing.ASGIFramework ) -> typing.Iterator[int]: config = Config() if certs: config.certfile = certs["certfile"] config.keyfile = certs["keyfile"] if "cert_reqs" in certs: config.verify_mode = certs["cert_reqs"] if "ca_certs" in certs: config.ca_certs = certs["ca_certs"] if "alpn_protocols" in certs: config.alpn_protocols = certs["alpn_protocols"] config.bind = [f"{host}:0"] ready_event = threading.Event() shutdown_event = threading.Event() with concurrent.futures.ThreadPoolExecutor( 1, thread_name_prefix="hypercorn dummyserver" ) as executor: future = executor.submit( trio.run, _start_server, config, app, ready_event, shutdown_event, ) ready_event.wait(5) if not ready_event.is_set(): > raise Exception("most likely failed to start server") E Exception: most likely failed to start server dummyserver/hypercornserver.py:148: Exception ---------------------------- Captured stderr setup ----------------------------- Starting server failed + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ =================================== FAILURES =================================== _______________ TestSOCKS4Proxy.test_socks_with_invalid_username _______________ self = dest_pair = ('example.com', 80), catch_errors = None @set_self_blocking def connect(self, dest_pair, catch_errors=None): """ Connects to the specified destination through a proxy. Uses the same API as socket's connect(). To select the proxy server, use set_proxy(). dest_pair - 2-tuple of (IP/hostname, port). """ if len(dest_pair) != 2 or dest_pair[0].startswith("["): # Probably IPv6, not supported -- raise an error, and hope # Happy Eyeballs (RFC6555) makes sure at least the IPv4 # connection works... raise socket.error("PySocks doesn't support IPv6: %s" % str(dest_pair)) dest_addr, dest_port = dest_pair if self.type == socket.SOCK_DGRAM: if not self._proxyconn: self.bind(("", 0)) dest_addr = socket.gethostbyname(dest_addr) # If the host address is INADDR_ANY or similar, reset the peer # address so that packets are received from any peer if dest_addr == "0.0.0.0" and not dest_port: self.proxy_peername = None else: self.proxy_peername = (dest_addr, dest_port) return (proxy_type, proxy_addr, proxy_port, rdns, username, password) = self.proxy # Do a minimal input check first if (not isinstance(dest_pair, (list, tuple)) or len(dest_pair) != 2 or not dest_addr or not isinstance(dest_port, int)): # Inputs failed, raise an error raise GeneralProxyError( "Invalid destination-connection (host, port) pair") # We set the timeout here so that we don't hang in connection or during # negotiation. super(socksocket, self).settimeout(self._timeout) if proxy_type is None: # Treat like regular socket object self.proxy_peername = dest_pair super(socksocket, self).settimeout(self._timeout) super(socksocket, self).connect((dest_addr, dest_port)) return proxy_addr = self._proxy_addr() try: # Initial connection to proxy server. > super(socksocket, self).connect(proxy_addr) E ConnectionRefusedError: [Errno 111] Connection refused /usr/lib/python3/dist-packages/socks.py:787: ConnectionRefusedError During handling of the above exception, another exception occurred: self = def _new_conn(self) -> socks.socksocket: """ Establish a new connection via the SOCKS proxy. """ extra_kw: dict[str, typing.Any] = {} if self.source_address: extra_kw["source_address"] = self.source_address if self.socket_options: extra_kw["socket_options"] = self.socket_options try: > conn = socks.create_connection( (self.host, self.port), proxy_type=self._socks_options["socks_version"], proxy_addr=self._socks_options["proxy_host"], proxy_port=self._socks_options["proxy_port"], proxy_username=self._socks_options["username"], proxy_password=self._socks_options["password"], proxy_rdns=self._socks_options["rdns"], timeout=self.timeout, **extra_kw, ) urllib3/contrib/socks.py:110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/socks.py:209: in create_connection raise err /usr/lib/python3/dist-packages/socks.py:199: in create_connection sock.connect((remote_host, remote_port)) /usr/lib/python3/dist-packages/socks.py:47: in wrapper return function(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = dest_pair = ('example.com', 80), catch_errors = None @set_self_blocking def connect(self, dest_pair, catch_errors=None): """ Connects to the specified destination through a proxy. Uses the same API as socket's connect(). To select the proxy server, use set_proxy(). dest_pair - 2-tuple of (IP/hostname, port). """ if len(dest_pair) != 2 or dest_pair[0].startswith("["): # Probably IPv6, not supported -- raise an error, and hope # Happy Eyeballs (RFC6555) makes sure at least the IPv4 # connection works... raise socket.error("PySocks doesn't support IPv6: %s" % str(dest_pair)) dest_addr, dest_port = dest_pair if self.type == socket.SOCK_DGRAM: if not self._proxyconn: self.bind(("", 0)) dest_addr = socket.gethostbyname(dest_addr) # If the host address is INADDR_ANY or similar, reset the peer # address so that packets are received from any peer if dest_addr == "0.0.0.0" and not dest_port: self.proxy_peername = None else: self.proxy_peername = (dest_addr, dest_port) return (proxy_type, proxy_addr, proxy_port, rdns, username, password) = self.proxy # Do a minimal input check first if (not isinstance(dest_pair, (list, tuple)) or len(dest_pair) != 2 or not dest_addr or not isinstance(dest_port, int)): # Inputs failed, raise an error raise GeneralProxyError( "Invalid destination-connection (host, port) pair") # We set the timeout here so that we don't hang in connection or during # negotiation. super(socksocket, self).settimeout(self._timeout) if proxy_type is None: # Treat like regular socket object self.proxy_peername = dest_pair super(socksocket, self).settimeout(self._timeout) super(socksocket, self).connect((dest_addr, dest_port)) return proxy_addr = self._proxy_addr() try: # Initial connection to proxy server. super(socksocket, self).connect(proxy_addr) except socket.error as error: # Error while connecting to proxy self.close() if not catch_errors: proxy_addr, proxy_port = proxy_addr proxy_server = "{}:{}".format(proxy_addr, proxy_port) printable_type = PRINTABLE_PROXY_TYPES[proxy_type] msg = "Error connecting to {} proxy {}".format(printable_type, proxy_server) log.debug("%s due to: %s", msg, error) > raise ProxyConnectionError(msg, error) E socks.ProxyConnectionError: Error connecting to SOCKS4 proxy localhost:42741: [Errno 111] Connection refused /usr/lib/python3/dist-packages/socks.py:800: ProxyConnectionError During handling of the above exception, another exception occurred: self = def test_socks_with_invalid_username(self) -> None: def request_handler(listener: socket.socket) -> None: sock = listener.accept()[0] handler = handle_socks4_negotiation(sock, username=b"user") next(handler, None) self._start_server(request_handler) proxy_url = f"socks4a://{self.host}:{self.port}" with socks.SOCKSProxyManager(proxy_url, username="baduser") as pm: with pytest.raises(NewConnectionError, match="different user-ids"): > pm.request("GET", "http://example.com", retries=False) test/contrib/test_socks.py:723: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ urllib3/_request_methods.py:135: in request return self.request_encode_url( urllib3/_request_methods.py:182: in request_encode_url return self.urlopen(method, url, **extra_kw) urllib3/poolmanager.py:443: in urlopen response = conn.urlopen(method, u.request_uri, **kw) urllib3/connectionpool.py:841: in urlopen retries = retries.increment( urllib3/util/retry.py:449: in increment raise reraise(type(error), error, _stacktrace) urllib3/util/util.py:39: in reraise raise value urllib3/connectionpool.py:787: in urlopen response = self._make_request( urllib3/connectionpool.py:493: in _make_request conn.request( urllib3/connection.py:445: in request self.endheaders() /usr/lib/python3.12/http/client.py:1331: in endheaders self._send_output(message_body, encode_chunked=encode_chunked) /usr/lib/python3.12/http/client.py:1091: in _send_output self.send(msg) /usr/lib/python3.12/http/client.py:1035: in send self.connect() urllib3/connection.py:276: in connect self.sock = self._new_conn() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _new_conn(self) -> socks.socksocket: """ Establish a new connection via the SOCKS proxy. """ extra_kw: dict[str, typing.Any] = {} if self.source_address: extra_kw["source_address"] = self.source_address if self.socket_options: extra_kw["socket_options"] = self.socket_options try: conn = socks.create_connection( (self.host, self.port), proxy_type=self._socks_options["socks_version"], proxy_addr=self._socks_options["proxy_host"], proxy_port=self._socks_options["proxy_port"], proxy_username=self._socks_options["username"], proxy_password=self._socks_options["password"], proxy_rdns=self._socks_options["rdns"], timeout=self.timeout, **extra_kw, ) except SocketTimeout as e: raise ConnectTimeoutError( self, f"Connection to {self.host} timed out. (connect timeout={self.timeout})", ) from e except socks.ProxyError as e: # This is fragile as hell, but it seems to be the only way to raise # useful errors here. if e.socket_err: error = e.socket_err if isinstance(error, SocketTimeout): raise ConnectTimeoutError( self, f"Connection to {self.host} timed out. (connect timeout={self.timeout})", ) from e else: # Adding `from e` messes with coverage somehow, so it's omitted. # See #2386. > raise NewConnectionError( self, f"Failed to establish a new connection: {error}" ) E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused urllib3/contrib/socks.py:141: NewConnectionError During handling of the above exception, another exception occurred: self = def test_socks_with_invalid_username(self) -> None: def request_handler(listener: socket.socket) -> None: sock = listener.accept()[0] handler = handle_socks4_negotiation(sock, username=b"user") next(handler, None) self._start_server(request_handler) proxy_url = f"socks4a://{self.host}:{self.port}" with socks.SOCKSProxyManager(proxy_url, username="baduser") as pm: > with pytest.raises(NewConnectionError, match="different user-ids"): E AssertionError: Regex pattern did not match. E Regex: 'different user-ids' E Input: ': Failed to establish a new connection: [Errno 111] Connection refused' test/contrib/test_socks.py:722: AssertionError ------------------------------ Captured log call ------------------------------- DEBUG urllib3.util.retry:retry.py:286 Converted retries value: False -> Retry(total=False, connect=None, read=None, redirect=0, status=None) DEBUG urllib3.connectionpool:connectionpool.py:241 Starting new HTTP connection (1): example.com:80 DEBUG socks:socks.py:799 Error connecting to SOCKS4 proxy localhost:42741 due to: [Errno 111] Connection refused __________ TestProxyManager.test_early_eof_doesnt_cause_infinite_loop __________ cls = func = . at 0xf41a4b18>, when = 'call' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, ) -> CallInfo[TResult]: """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :type func: Callable[[], _pytest.runner.TResult] :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: TResult | None = func() /usr/lib/python3/dist-packages/_pytest/runner.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/runner.py:242: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:120: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/threadexception.py:92: in pytest_runtest_call yield from thread_exception_runtest_hook() /usr/lib/python3/dist-packages/_pytest/threadexception.py:68: in thread_exception_runtest_hook yield /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:95: in pytest_runtest_call yield from unraisable_exception_runtest_hook() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def unraisable_exception_runtest_hook() -> Generator[None]: with catch_unraisable_exception() as cm: try: yield finally: if cm.unraisable: if cm.unraisable.err_msg is not None: err_msg = cm.unraisable.err_msg else: err_msg = "Exception ignored in" msg = f"{err_msg}: {cm.unraisable.object!r}\n\n" msg += "".join( traceback.format_exception( cm.unraisable.exc_type, cm.unraisable.exc_value, cm.unraisable.exc_traceback, ) ) > warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) E pytest.PytestUnraisableExceptionWarning: Exception ignored in: E E Traceback (most recent call last): E File "/usr/lib/python3.12/threading.py", line 299, in __enter__ E def __enter__(self): E E ResourceWarning: unclosed /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning =============================== warnings summary =============================== test/contrib/test_pyopenssl.py: 30 warnings test/contrib/test_socks.py: 17 warnings test/test_ssltransport.py: 12 warnings test/with_dummyserver/test_chunked_transfer.py: 23 warnings test/with_dummyserver/test_connectionpool.py: 5 warnings test/with_dummyserver/test_socketlevel.py: 114 warnings /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/socketserver.py:125: NoIPv6Warning: No IPv6 support. Falling back to IPv4. warnings.warn("No IPv6 support. Falling back to IPv4.", NoIPv6Warning) test/contrib/test_pyopenssl.py: 15 warnings test/with_dummyserver/test_socketlevel.py: 17 warnings /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/test/with_dummyserver/test_socketlevel.py:158: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated context = ssl.SSLContext(ssl_version) test/contrib/test_socks.py::TestSOCKSWithTLS::test_basic_request /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/test/contrib/test_socks.py:745: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated context = better_ssl.SSLContext(ssl.PROTOCOL_SSLv23) # type: ignore[misc] test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs0] test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs1] test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs2] /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/urllib3/util/ssl_.py:291: DeprecationWarning: ssl.TLSVersion.TLSv1 is deprecated context.minimum_version = ssl_minimum_version test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs0] test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs1] test/test_ssl.py::TestSSL::test_create_urllib3_context_ssl_version_and_ssl_min_max_version_no_error[kwargs2] /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/urllib3/util/ssl_.py:296: DeprecationWarning: ssl.TLSVersion.TLSv1 is deprecated context.maximum_version = ssl_maximum_version test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_client_cert_with_string_password test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_client_cert_with_bytes_password /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/test/with_dummyserver/test_socketlevel.py:366: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated ssl_context = ssl_.SSLContext(ssl_.PROTOCOL_SSLv23) test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_load_keyfile_with_invalid_password /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/test/with_dummyserver/test_socketlevel.py:385: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated context = ssl_.SSLContext(ssl_.PROTOCOL_SSLv23) test/with_dummyserver/test_socketlevel.py::TestClientCerts::test_load_invalid_cert_file /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/test/with_dummyserver/test_socketlevel.py:395: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated context = ssl_.SSLContext(ssl_.PROTOCOL_SSLv23) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED test/contrib/test_socks.py::TestSOCKS4Proxy::test_socks_with_invalid_username - AssertionError: Regex pattern did not match. Regex: 'different user-ids' Input: ': Failed to establish a new connection: [Errno 111] Connection refused' FAILED test/with_dummyserver/test_socketlevel.py::TestProxyManager::test_early_eof_doesnt_cause_infinite_loop - pytest.PytestUnraisableExceptionWarning: Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3.12/threading.py", line 299, in __enter__ def __enter__(self): ResourceWarning: unclosed ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_simple[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_simple[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_default_port - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_client_intermediate - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_client_no_intermediate - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_client_key_password - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_client_encrypted_key_requires_password - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_verified - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_verified_with_context - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_context_combines_with_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_ca_dir_verified - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_invalid_common_name - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_verified_with_bad_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_wrap_socket_failure_resource_leak - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_verified_without_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_no_ssl - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_unverified_ssl - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_ssl_unverified_with_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_assert_hostname_false - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_assert_specific_hostname - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_server_hostname - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_assert_fingerprint_md5 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_assert_fingerprint_sha1 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_assert_fingerprint_sha256 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_assert_invalid_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_verify_none_and_bad_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_verify_none_and_good_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_good_fingerprint_and_hostname_mismatch - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_tunnel[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_tunnel[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_enhanced_ssl_connection - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_ssl_correct_system_time - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_ssl_wrong_system_time - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_set_ssl_version_to_tls_version - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_set_cert_default_cert_required - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_set_cert_inherits_cert_reqs_from_ssl_context[0] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_set_cert_inherits_cert_reqs_from_ssl_context[2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_tls_protocol_name_of_socket - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_ssl_version_is_deprecated - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_no_tls_version_deprecation_with_ssl_context - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_tls_version_maximum_and_minimum - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_sslkeylogfile - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_sslkeylogfile_empty[None] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_sslkeylogfile_empty[] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_alpn_default[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_alpn_default[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_http2_probe_result_is_cached[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_http2_probe_result_is_cached[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_http2_probe_no_result_in_connect_error - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_http2_probe_no_result_in_ssl_error - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_default_ssl_context_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_ssl_context_ssl_version_uses_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_assert_missing_hashfunc - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_simple[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_simple[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_default_port - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_client_intermediate - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_client_no_intermediate - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_client_key_password - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_client_encrypted_key_requires_password - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_verified - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_verified_with_context - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_context_combines_with_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_ca_dir_verified - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_invalid_common_name - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_verified_with_bad_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_wrap_socket_failure_resource_leak - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_verified_without_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_no_ssl - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_unverified_ssl - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_ssl_unverified_with_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_assert_hostname_false - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_assert_specific_hostname - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_server_hostname - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_assert_fingerprint_md5 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_assert_fingerprint_sha1 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_assert_fingerprint_sha256 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_assert_invalid_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_verify_none_and_bad_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_verify_none_and_good_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_good_fingerprint_and_hostname_mismatch - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_tunnel[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_tunnel[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_enhanced_ssl_connection - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_ssl_correct_system_time - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_ssl_wrong_system_time - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_set_ssl_version_to_tls_version - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_set_cert_default_cert_required - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_set_cert_inherits_cert_reqs_from_ssl_context[0] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_set_cert_inherits_cert_reqs_from_ssl_context[2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_tls_protocol_name_of_socket - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_ssl_version_is_deprecated - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_no_tls_version_deprecation_with_ssl_context - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_tls_version_maximum_and_minimum - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_sslkeylogfile - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_sslkeylogfile_empty[None] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_sslkeylogfile_empty[] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_alpn_default[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_alpn_default[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_http2_probe_result_is_cached[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_http2_probe_result_is_cached[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_http2_probe_no_result_in_connect_error - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_http2_probe_no_result_in_ssl_error - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_default_ssl_context_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_ssl_context_ssl_version_uses_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_assert_missing_hashfunc - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_simple[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_simple[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_default_port - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_client_intermediate - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_client_no_intermediate - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_client_key_password - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_client_encrypted_key_requires_password - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_verified - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_verified_with_context - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_context_combines_with_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_ca_dir_verified - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_invalid_common_name - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_verified_with_bad_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_wrap_socket_failure_resource_leak - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_verified_without_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_no_ssl - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_unverified_ssl - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_ssl_unverified_with_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_assert_hostname_false - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_assert_specific_hostname - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_server_hostname - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_assert_fingerprint_md5 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_assert_fingerprint_sha1 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_assert_fingerprint_sha256 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_assert_invalid_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_verify_none_and_bad_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_verify_none_and_good_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_good_fingerprint_and_hostname_mismatch - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_tunnel[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_tunnel[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_enhanced_ssl_connection - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_ssl_correct_system_time - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_ssl_wrong_system_time - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_set_ssl_version_to_tls_version - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_set_cert_default_cert_required - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_set_cert_inherits_cert_reqs_from_ssl_context[0] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_set_cert_inherits_cert_reqs_from_ssl_context[2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_tls_protocol_name_of_socket - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_ssl_version_is_deprecated - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_no_tls_version_deprecation_with_ssl_context - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_tls_version_maximum_and_minimum - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_sslkeylogfile - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_sslkeylogfile_empty[None] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_sslkeylogfile_empty[] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_alpn_default[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_alpn_default[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_http2_probe_result_is_cached[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_http2_probe_result_is_cached[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_http2_probe_no_result_in_connect_error - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_http2_probe_no_result_in_ssl_error - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_default_ssl_context_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_ssl_context_ssl_version_uses_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_assert_missing_hashfunc - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_simple[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_simple[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_default_port - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_client_intermediate - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_client_no_intermediate - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_client_key_password - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_client_encrypted_key_requires_password - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_verified - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_verified_with_context - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_context_combines_with_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_ca_dir_verified - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_invalid_common_name - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_verified_with_bad_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_wrap_socket_failure_resource_leak - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_verified_without_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_no_ssl - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_unverified_ssl - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_ssl_unverified_with_ca_certs - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_assert_hostname_false - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_assert_specific_hostname - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_server_hostname - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_assert_fingerprint_md5 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_assert_fingerprint_sha1 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_assert_fingerprint_sha256 - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_assert_invalid_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_verify_none_and_bad_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_verify_none_and_good_fingerprint - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_good_fingerprint_and_hostname_mismatch - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_tunnel[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_tunnel[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_enhanced_ssl_connection - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_ssl_correct_system_time - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_ssl_wrong_system_time - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_set_ssl_version_to_tls_version - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_set_cert_default_cert_required - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_set_cert_inherits_cert_reqs_from_ssl_context[0] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_set_cert_inherits_cert_reqs_from_ssl_context[2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_tls_protocol_name_of_socket - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_ssl_version_is_deprecated - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_no_tls_version_deprecation_with_ssl_context - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_tls_version_maximum_and_minimum - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_sslkeylogfile - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_sslkeylogfile_empty[None] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_sslkeylogfile_empty[] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_alpn_default[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_alpn_default[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_http2_probe_result_is_cached[h11] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_http2_probe_result_is_cached[h2] - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_http2_probe_no_result_in_connect_error - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_http2_probe_no_result_in_ssl_error - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_default_ssl_context_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_ssl_context_ssl_version_uses_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_assert_missing_hashfunc - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connection.py::test_returns_urllib3_HTTPResponse - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connection.py::test_audit_event - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connection.py::test_does_not_release_conn - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connection.py::test_releases_conn - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connection.py::test_double_getresponse - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connection.py::test_connection_state_properties - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connection.py::test_set_tunnel_is_reset - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connection.py::test_invalid_tunnel_scheme - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_http2_test_error[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_http2_test_error[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_get - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_debug_log - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_post_url - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_urlopen_put - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_wrong_specific_method - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_upload - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_one_name_multiple_values - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_request_method_body - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_unicode_upload - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_nagle - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_options[socket_options0] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_options[socket_options1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_disable_default_socket_options[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_disable_default_socket_options[socket_options1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_defaults_are_applied - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_connection_error_retries - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_timeout_success - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_constructor[1-expect_settimeout_calls0] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_constructor[None-expect_settimeout_calls1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_constructor[timeout2-expect_settimeout_calls2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_constructor[timeout3-expect_settimeout_calls3] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_constructor[timeout4-expect_settimeout_calls4] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_parameter[1-expect_settimeout_calls0] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_parameter[None-expect_settimeout_calls1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_parameter[timeout2-expect_settimeout_calls2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_parameter[timeout3-expect_settimeout_calls3] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_socket_timeout_updated_on_reuse_parameter[timeout4-expect_settimeout_calls4] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_tunnel - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_redirect_relative_url_no_deprecation - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_redirect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_303_redirect_makes_request_lose_body - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_bad_connect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_keepalive - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_keepalive_close - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_post_with_urlencode - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_post_with_multipart - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_post_with_multipart__iter__ - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_check_gzip - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_check_deflate - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_bad_decode - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_connection_count - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_connection_count_bigpool - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_partial_response - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_lazy_load_twice - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_for_double_release - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_release_conn_parameter - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_dns_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_invalid_method_not_allowed[ ] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_invalid_method_not_allowed[\r] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_invalid_method_not_allowed[\n] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_invalid_method_not_allowed[\x00] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_percent_encode_invalid_target_chars - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_source_address - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_source_address_error[invalid_source_address0-False] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_source_address_error[invalid_source_address1-True] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_stream_keepalive - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_read_chunked_short_circuit - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_read_chunked_on_closed_response - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_chunked_gzip - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_cleanup_on_connection_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_mixed_case_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_preserves_path_dot_segments - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_default_user_agent_header - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[True-None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[True-headers1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[True-headers2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[True-headers3] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[True-headers4] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[True-headers5] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[False-None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[False-headers1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[False-headers2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[False-headers3] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[False-headers4] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_header_not_sent_twice[False-headers5] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_no_user_agent_header - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_skip_header_non_supported[True-Content-Length] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_skip_header_non_supported[True-content-length] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_skip_header_non_supported[False-Content-Length] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_skip_header_non_supported[False-content-length] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[dict-True-True] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[dict-True-False] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[dict-False-True] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[dict-False-False] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[HTTPHeaderDict-True-True] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[HTTPHeaderDict-True-False] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[HTTPHeaderDict-False-True] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_headers_not_modified_by_request[HTTPHeaderDict-False-False] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_request_chunked_is_deprecated - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_bytes_header - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_non_ascii_user_agent[Sch\xf6nefeld/1.18.0_0] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestConnectionPool::test_user_agent_non_ascii_user_agent[Sch\xf6nefeld/1.18.0_1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_max_retry - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_disabled_retry - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_read_retries - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_read_total_retries - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_retries_wrong_forcelist - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_default_method_forcelist_retried - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_retries_wrong_method_list - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_read_retries_unsuccessful - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_retry_reuse_safe - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_retry_return_in_response - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_retry_redirect_history - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetry::test_multi_redirect_history - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetryAfter::test_retry_after - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetryAfter::test_redirect_after - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestFileBodiesOnRetryOrRedirect::test_retries_put_filehandle - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestFileBodiesOnRetryOrRedirect::test_redirect_put_file - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestFileBodiesOnRetryOrRedirect::test_redirect_with_failed_tell - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRetryPoolSize::test_pool_size_retry - Exception: most likely failed to start server ERROR test/with_dummyserver/test_connectionpool.py::TestRedirectPoolSize::test_pool_size_redirect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_simple[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_simple[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_default_port - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_client_intermediate - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_client_no_intermediate - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_client_key_password - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_client_encrypted_key_requires_password - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_verified - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_verified_with_context - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_context_combines_with_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_ca_dir_verified - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_invalid_common_name - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_verified_with_bad_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_wrap_socket_failure_resource_leak - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_verified_without_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_no_ssl - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_unverified_ssl - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_ssl_unverified_with_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_assert_hostname_false - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_assert_specific_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_server_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_assert_fingerprint_md5 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_assert_fingerprint_sha1 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_assert_fingerprint_sha256 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_assert_invalid_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_verify_none_and_bad_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_verify_none_and_good_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_good_fingerprint_and_hostname_mismatch - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_tunnel[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_tunnel[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_enhanced_ssl_connection - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_ssl_correct_system_time - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_ssl_wrong_system_time - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_set_ssl_version_to_tls_version - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_set_cert_default_cert_required - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_set_cert_inherits_cert_reqs_from_ssl_context[0] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_set_cert_inherits_cert_reqs_from_ssl_context[2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_tls_protocol_name_of_socket - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_ssl_version_is_deprecated - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_no_tls_version_deprecation_with_ssl_context - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_tls_version_maximum_and_minimum - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_sslkeylogfile - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_sslkeylogfile_empty[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_sslkeylogfile_empty[] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_alpn_default[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_alpn_default[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_http2_probe_result_is_cached[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_http2_probe_result_is_cached[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_http2_probe_no_result_in_connect_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_http2_probe_no_result_in_ssl_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_default_ssl_context_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_ssl_context_ssl_version_uses_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1::test_assert_missing_hashfunc - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_simple[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_simple[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_default_port - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_client_intermediate - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_client_no_intermediate - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_client_key_password - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_client_encrypted_key_requires_password - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_verified - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_verified_with_context - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_context_combines_with_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_ca_dir_verified - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_invalid_common_name - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_verified_with_bad_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_wrap_socket_failure_resource_leak - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_verified_without_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_no_ssl - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_unverified_ssl - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_ssl_unverified_with_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_assert_hostname_false - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_assert_specific_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_server_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_assert_fingerprint_md5 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_assert_fingerprint_sha1 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_assert_fingerprint_sha256 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_assert_invalid_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_verify_none_and_bad_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_verify_none_and_good_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_good_fingerprint_and_hostname_mismatch - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_tunnel[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_tunnel[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_enhanced_ssl_connection - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_ssl_correct_system_time - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_ssl_wrong_system_time - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_set_ssl_version_to_tls_version - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_set_cert_default_cert_required - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_set_cert_inherits_cert_reqs_from_ssl_context[0] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_set_cert_inherits_cert_reqs_from_ssl_context[2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_tls_protocol_name_of_socket - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_ssl_version_is_deprecated - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_no_tls_version_deprecation_with_ssl_context - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_tls_version_maximum_and_minimum - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_sslkeylogfile - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_sslkeylogfile_empty[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_sslkeylogfile_empty[] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_alpn_default[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_alpn_default[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_http2_probe_result_is_cached[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_http2_probe_result_is_cached[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_http2_probe_no_result_in_connect_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_http2_probe_no_result_in_ssl_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_default_ssl_context_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_ssl_context_ssl_version_uses_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_1::test_assert_missing_hashfunc - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_simple[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_simple[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_default_port - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_client_intermediate - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_client_no_intermediate - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_client_key_password - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_client_encrypted_key_requires_password - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_verified - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_verified_with_context - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_context_combines_with_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_ca_dir_verified - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_invalid_common_name - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_verified_with_bad_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_wrap_socket_failure_resource_leak - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_verified_without_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_no_ssl - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_unverified_ssl - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_ssl_unverified_with_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_assert_hostname_false - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_assert_specific_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_server_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_assert_fingerprint_md5 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_assert_fingerprint_sha1 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_assert_fingerprint_sha256 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_assert_invalid_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_verify_none_and_bad_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_verify_none_and_good_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_good_fingerprint_and_hostname_mismatch - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_tunnel[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_tunnel[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_enhanced_ssl_connection - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_ssl_correct_system_time - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_ssl_wrong_system_time - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_set_ssl_version_to_tls_version - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_set_cert_default_cert_required - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_set_cert_inherits_cert_reqs_from_ssl_context[0] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_set_cert_inherits_cert_reqs_from_ssl_context[2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_tls_protocol_name_of_socket - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_ssl_version_is_deprecated - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_no_tls_version_deprecation_with_ssl_context - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_tls_version_maximum_and_minimum - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_sslkeylogfile - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_sslkeylogfile_empty[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_sslkeylogfile_empty[] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_alpn_default[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_alpn_default[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_http2_probe_result_is_cached[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_http2_probe_result_is_cached[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_http2_probe_no_result_in_connect_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_http2_probe_no_result_in_ssl_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_default_ssl_context_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_ssl_context_ssl_version_uses_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_2::test_assert_missing_hashfunc - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_simple[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_simple[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_default_port - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_client_intermediate - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_client_no_intermediate - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_client_key_password - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_client_encrypted_key_requires_password - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_verified - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_verified_with_context - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_context_combines_with_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_ca_dir_verified - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_invalid_common_name - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_verified_with_bad_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_wrap_socket_failure_resource_leak - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_verified_without_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_no_ssl - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_unverified_ssl - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_ssl_unverified_with_ca_certs - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_assert_hostname_false - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_assert_specific_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_server_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_assert_fingerprint_md5 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_assert_fingerprint_sha1 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_assert_fingerprint_sha256 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_assert_invalid_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_verify_none_and_bad_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_verify_none_and_good_fingerprint - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_good_fingerprint_and_hostname_mismatch - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_tunnel[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_tunnel[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_enhanced_ssl_connection - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_ssl_correct_system_time - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_ssl_wrong_system_time - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_set_ssl_version_to_tls_version - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_set_cert_default_cert_required - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_set_cert_inherits_cert_reqs_from_ssl_context[0] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_set_cert_inherits_cert_reqs_from_ssl_context[2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_tls_protocol_name_of_socket - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_ssl_version_is_deprecated - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_ssl_version_with_protocol_tls_or_client_not_deprecated[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_ssl_version_with_protocol_tls_or_client_not_deprecated[2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_ssl_version_with_protocol_tls_or_client_not_deprecated[16] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_no_tls_version_deprecation_with_ssl_context - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_tls_version_maximum_and_minimum - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_sslkeylogfile - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_sslkeylogfile_empty[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_sslkeylogfile_empty[] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_alpn_default[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_alpn_default[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_http2_probe_result_is_cached[h11] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_http2_probe_result_is_cached[h2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_http2_probe_no_result_in_connect_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_http2_probe_no_result_in_ssl_error - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_default_ssl_context_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_ssl_context_ssl_version_uses_ssl_min_max_versions - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_TLSv1_3::test_assert_missing_hashfunc - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_Hostname::test_can_validate_san[localhost] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_Hostname::test_common_name_without_san_fails[localhost] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_Hostname::test_common_name_without_san_with_different_common_name - pytest.PytestUnraisableExceptionWarning: Exception ignored in: + Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build/dummyserver/hypercornserver.py", line 99, in _start_server | config.bind = await nursery.start( | ^^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1350, in start | raise exc.exceptions[0] from None | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/__init__.py", line 47, in serve | await worker_serve( | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 42, in worker_serve | async with trio.open_nursery() as lifespan_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 46, in worker_serve | async with trio.open_nursery() as server_nursery: | ^^^^^^^^^^^^^^^^^^^ | File "/usr/lib/python3/dist-packages/trio/_core/_run.py", line 1039, in __aexit__ | raise combined_error_from_nursery | ExceptionGroup: Exceptions from Trio nursery (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/build/reproducible-path/python-urllib3-2.3.0/debian/vendor/hypercorn/trio/run.py", line 50, in worker_serve | sock.listen(config.backlog) | OSError: [Errno 98] Address already in use +------------------------------------ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.12/contextlib.py", line 446, in __exit__ def __exit__(self, exctype, excinst, exctb): ResourceWarning: unclosed ERROR test/with_dummyserver/test_https.py::TestHTTPS_Hostname::test_hostname_checks_common_name_respected[localhost-True] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_Hostname::test_hostname_checks_common_name_respected[localhost-False] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_Hostname::test_assert_hostname_invalid_san - Exception: most likely failed to start server ERROR test/with_dummyserver/test_https.py::TestHTTPS_Hostname::test_assert_hostname_invalid_cn - Exception: most likely failed to start server ERROR test/with_dummyserver/test_no_ssl.py::TestHTTPWithoutSSL::test_simple - pytest.PytestUnraisableExceptionWarning: Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/_pytest/nodes.py", line 235, in ihook @property ResourceWarning: unclosed ERROR test/with_dummyserver/test_no_ssl.py::TestHTTPSWithoutSSL::test_simple - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_redirect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_redirect_twice - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_redirect_to_relative_url - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_cross_host_redirect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_too_many_redirects - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_redirect_cross_host_remove_headers - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_redirect_cross_host_no_remove_headers - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_redirect_cross_host_set_removed_headers - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_redirect_without_preload_releases_connection - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_303_redirect_makes_request_lose_body - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_unknown_scheme - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_raise_on_redirect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_raise_on_status - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_missing_port - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_headers - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_headers_http_header_dict - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_merge_headers_with_pool_manager_headers - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_headers_http_multi_header_multipart - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_body - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_http_with_ssl_keywords - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_http_with_server_hostname - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_http_with_ca_cert_dir - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_encode_http_target[/echo_uri-/echo_uri?] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_encode_http_target[/echo_uri?q=1#fragment-/echo_uri?q=1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_encode_http_target[/echo_uri?#-/echo_uri?] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_encode_http_target[/echo_uri#!-/echo_uri?] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_encode_http_target[/echo_uri#!#-/echo_uri?] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_encode_http_target[/echo_uri??#-/echo_uri??] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_encode_http_target[/echo_uri?%3f#-/echo_uri?%3F] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_encode_http_target[/echo_uri?%3F#-/echo_uri?%3F] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_encode_http_target[/echo_uri?[]-/echo_uri?%5B%5D] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_without_keyword_args - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_with_body - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_with_preload_content - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_with_decode_content - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_with_redirect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_with_retries - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_with_timeout - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_request_with_json[None] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_request_with_json[headers1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_request_with_json[headers2] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_request_with_json[headers3] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_request_with_json[headers4] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_with_json_with_httpheaderdict - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_with_body_and_json - Exception: most likely failed to start server ERROR test/with_dummyserver/test_poolmanager.py::TestPoolManager::test_top_level_request_with_invalid_body - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_basic_proxy - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_https_proxy - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_is_verified_http_proxy_to_http_target - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_is_verified_http_proxy_to_https_target - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_is_verified_https_proxy_to_http_target - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_is_verified_https_proxy_to_https_target - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_http_and_https_kwarg_ca_cert_data_proxy - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_https_proxy_with_proxy_ssl_context - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_https_proxy_pyopenssl_not_supported - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_https_proxy_forwarding_for_https - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_nagle_proxy - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_proxy_conn_fail_from_dns[http-http] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_proxy_conn_fail_from_dns[http-https] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_proxy_conn_fail_from_dns[https-http] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_proxy_conn_fail_from_dns[https-https] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_oldapi - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_proxy_verified - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_redirect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_cross_host_redirect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_cross_protocol_redirect - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_headers - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_https_headers - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_https_headers_forwarding_for_https - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_headerdict - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_proxy_pooling - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_proxy_pooling_ext - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_scheme_host_case_insensitive - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_invalid_schema[127.0.0.1-Proxy URL had no scheme, should start with http:// or https://] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_invalid_schema[localhost:8080-Proxy URL had no scheme, should start with http:// or https://] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_invalid_schema[ftp://google.com-Proxy URL had unsupported scheme ftp, should use http:// or https://] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_assert_fingerprint_md5 - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_assert_fingerprint_md5_non_matching - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_assert_hostname[localhost] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_assert_hostname[127.0.0.1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_assert_hostname_non_matching[localhost] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_assert_hostname_non_matching[127.0.0.1] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_hostname_verification - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_ipv4_san - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_ipv6_san - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_no_san[http] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_no_san[https] - Exception: most likely failed to start server ERROR test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_no_san_hostname_checks_common_name - Exception: most likely failed to start server = 2 failed, 1362 passed, 60 skipped, 41 deselected, 16 xfailed, 244 warnings, 667 errors in 343.49s (0:05:43) = sys:1: ResourceWarning: unclosed ResourceWarning: Enable tracemalloc to get the object allocation traceback sys:1: ResourceWarning: unclosed ResourceWarning: Enable tracemalloc to get the object allocation traceback E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-urllib3-2.3.0/.pybuild/cpython3_3.12_urllib3/build; python3.12 -m pytest -k "not requires_network and not test_recent_date" dh_auto_test: error: pybuild --test -i python{version} -p "3.13 3.12" returned exit code 13 make[1]: *** [debian/rules:24: override_dh_auto_test] Error 25 make[1]: Leaving directory '/build/reproducible-path/python-urllib3-2.3.0' make: *** [debian/rules:17: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 I: copying local configuration E: Failed autobuilding of package 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/19699 and its subdirectories Thu Jan 23 23:58:01 UTC 2025 W: No second build log, what happened?