==> Building on manectric ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list ./ LICENSE 700 49% 0.00kB/s 0:00:00 1,401 100% 684.57kB/s 0:00:00 (xfr#1, to-chk=2/4) PKGBUILD 700 29% 683.59kB/s 0:00:00 2,362 100% 2.25MB/s 0:00:00 (xfr#2, to-chk=1/4) python-urllib3-1.26.13-1.log 373 100% 364.26kB/s 0:00:00 373 100% 364.26kB/s 0:00:00 (xfr#3, to-chk=0/4) sent 1,169 bytes received 118 bytes 858.00 bytes/sec total size is 3,929 speedup is 3.05 ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l root5 on remote host... [?25l:: Synchronizing package databases... core downloading... extra downloading... community downloading... :: Starting full system upgrade... there is nothing to do [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [root5]...done ==> Making package: python-urllib3 1.26.13-1 (Thu Mar 9 18:58:32 2023) ==> Retrieving sources...  -> Found python-urllib3-1.26.13.tar.gz ==> Validating source files with sha512sums... python-urllib3-1.26.13.tar.gz ... Passed ==> Making package: python-urllib3 1.26.13-1 (Thu Mar 9 18:58:44 2023) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (81) New Version Net Change Download Size community/cython 0.29.33-1 7.53 MiB core/libnsl 2.0.0-2 0.06 MiB core/python 3.10.9-1 81.37 MiB community/python-astroid 2.15.0-1 2.58 MiB 0.38 MiB extra/python-attrs 22.2.0-1 0.44 MiB community/python-autocommand 2.2.2-1 0.07 MiB community/python-babel 2.11.0-1 29.16 MiB community/python-beautifulsoup4 4.11.2-1 1.15 MiB extra/python-cffi 1.15.1-1 1.00 MiB extra/python-chardet 5.1.0-1 2.49 MiB community/python-colorama 0.4.6-1 0.17 MiB extra/python-cryptography 39.0.2-1 3.61 MiB 0.84 MiB community/python-dill 0.3.6-1 0.80 MiB community/python-docutils 1:0.19-2 4.26 MiB community/python-exceptiongroup 1.1.0-1 0.09 MiB community/python-fastjsonschema 2.16.3-1 0.20 MiB extra/python-idna 3.4-1 0.67 MiB community/python-imagesize 1.4.1-2 0.03 MiB community/python-importlib-metadata 5.0.0-3 0.15 MiB community/python-inflect 6.0.2-1 0.28 MiB community/python-iniconfig 2.0.0-2 0.03 MiB community/python-isort 5.12.0-1 0.69 MiB community/python-jaraco.context 4.3.0-1 0.03 MiB community/python-jaraco.functools 3.6.0-1 0.05 MiB community/python-jaraco.text 3.11.1-1 0.07 MiB community/python-jinja 1:3.1.2-2 1.28 MiB extra/python-lazy-object-proxy 1.9.0-1 0.11 MiB extra/python-markupsafe 2.1.2-1 0.06 MiB community/python-mccabe 0.7.0-1 0.04 MiB community/python-more-itertools 9.0.0-1 0.49 MiB extra/python-ordered-set 4.1.0-1 0.06 MiB extra/python-packaging 23.0-1 0.32 MiB community/python-pbr 5.11.1-2 0.67 MiB extra/python-platformdirs 3.0.0-1 0.12 MiB community/python-pluggy 1.0.0-2 0.10 MiB extra/python-ply 3.11-10 0.31 MiB extra/python-pycparser 2.21-3 1.39 MiB community/python-pydantic 1.10.4-1 5.81 MiB community/python-pygments 2.14.0-2 12.19 MiB community/python-pylint 2.16.3-1 4.52 MiB 0.95 MiB community/python-pytest 7.2.2-1 2.80 MiB community/python-pytz 2022.7-1 0.14 MiB extra/python-requests 2.28.2-1 0.46 MiB extra/python-retrying 1.3.3-15 0.03 MiB 0.01 MiB extra/python-six 1.16.0-6 0.09 MiB community/python-snowballstemmer 2.2.0-3 1.78 MiB community/python-soupsieve 2.4-1 0.32 MiB community/python-sphinx-alabaster-theme 0.7.13-1 0.04 MiB community/python-sphinx-basic-ng 1.0.0b1-1 0.04 MiB community/python-sphinxcontrib-applehelp 1.0.4-1 0.25 MiB community/python-sphinxcontrib-devhelp 1.0.2-9 0.13 MiB community/python-sphinxcontrib-htmlhelp 2.0.1-1 0.16 MiB community/python-sphinxcontrib-jsmath 1.0.1-12 0.01 MiB community/python-sphinxcontrib-qthelp 1.0.3-9 0.16 MiB community/python-sphinxcontrib-serializinghtml 1.1.5-4 0.13 MiB community/python-toml 0.10.2-8 0.14 MiB extra/python-tomli 2.0.1-1 0.08 MiB community/python-tomlkit 0.11.6-1 0.39 MiB extra/python-trove-classifiers 2023.2.20-1 0.11 MiB community/python-typing_extensions 4.5.0-1 0.23 MiB extra/python-urllib3 1.26.7-5 0.69 MiB extra/python-validate-pyproject 0.12.1-1 0.22 MiB extra/python-wrapt 1.14.1-1 0.19 MiB community/python-zipp 3.12.0-1 0.04 MiB core/python-brotli 1.0.9-10 0.67 MiB 0.31 MiB community/python-dateutil 2.8.2-4 0.82 MiB community/python-flaky 3.7.0-7 0.15 MiB community/python-gcp-devrel-py-tools 0.0.16-5 0.10 MiB community/python-mock 3.0.5-9 0.21 MiB community/python-ndg-httpsclient 0.5.1-11 0.18 MiB extra/python-nose 1.3.7-14 0.89 MiB community/python-psutil 5.9.4-1 2.10 MiB extra/python-pyasn1 0.4.8-7 0.60 MiB extra/python-pyopenssl 23.0.0-1 0.56 MiB community/python-pysocks 1.7.1-7 0.10 MiB community/python-pytest-runner 6.0.0-2 0.03 MiB 0.01 MiB extra/python-setuptools 1:67.4.0-1 3.33 MiB community/python-sphinx 5.3.0-1 15.45 MiB community/python-sphinx-furo 2022.12.07-1 0.33 MiB 0.08 MiB community/python-tornado 6.2.0-2 4.07 MiB community/python-trustme 0.9.0-5 0.07 MiB Total Download Size: 2.59 MiB Total Installed Size: 202.73 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-pylint-2.16.3-1-any downloading... python-cryptography-39.0.2-1-riscv64 downloading... python-astroid-2.15.0-1-any downloading... python-brotli-1.0.9-10-riscv64 downloading... python-sphinx-furo-2022.12.07-1-any downloading... python-pytest-runner-6.0.0-2-any downloading... python-retrying-1.3.3-15-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing libnsl... installing python... Optional dependencies for python python-setuptools [pending] python-pip sqlite [installed] mpdecimal: for decimal xz: for lzma [installed] tk: for tkinter installing python-more-itertools... installing python-jaraco.functools... installing python-jaraco.context... installing python-autocommand... installing cython... installing python-typing_extensions... installing python-pydantic... Optional dependencies for python-pydantic python-dotenv: for .env file support python-email-validator: for email validation installing python-inflect... installing python-jaraco.text... installing python-ordered-set... installing python-packaging... installing python-platformdirs... installing python-tomli... installing python-fastjsonschema... installing python-trove-classifiers... installing python-validate-pyproject... installing python-setuptools... installing python-pytz... installing python-babel... installing python-docutils... installing python-imagesize... installing python-markupsafe... installing python-jinja... Optional dependencies for python-jinja python-babel: for i18n support [installed] installing python-pygments... installing python-urllib3... Optional dependencies for python-urllib3 python-pysocks: SOCKS support [pending] python-brotli: Brotli support [pending] python-pyopenssl: security support [pending] python-idna: security support [pending] installing python-chardet... installing python-idna... installing python-requests... Optional dependencies for python-requests python-pysocks: SOCKS proxy support [pending] installing python-snowballstemmer... Optional dependencies for python-snowballstemmer python-pystemmer: for improved performance installing python-sphinx-alabaster-theme... installing python-sphinxcontrib-applehelp... installing python-sphinxcontrib-devhelp... installing python-sphinxcontrib-htmlhelp... installing python-sphinxcontrib-jsmath... installing python-sphinxcontrib-qthelp... installing python-sphinxcontrib-serializinghtml... installing python-sphinx... Optional dependencies for python-sphinx imagemagick: for ext.imgconverter texlive-latexextra: for generation of PDF documentation installing python-ply... installing python-pycparser... installing python-cffi... installing python-cryptography... installing python-pyopenssl... installing python-pyasn1... installing python-ndg-httpsclient... installing python-pysocks... installing python-six... installing python-zipp... installing python-importlib-metadata... installing python-pbr... installing python-mock... installing python-brotli... installing python-sphinx-basic-ng... installing python-soupsieve... installing python-beautifulsoup4... Optional dependencies for python-beautifulsoup4 python-chardet: to autodetect character encodings [installed] python-lxml: alternative HTML parser python-html5lib: alternative HTML parser installing python-sphinx-furo... installing python-attrs... installing python-exceptiongroup... installing python-iniconfig... installing python-pluggy... installing python-pytest... installing python-pytest-runner... installing python-tornado... Optional dependencies for python-tornado python-pycurl: for tornado.curl_httpclient python-twisted: for tornado.platform.twisted installing python-nose... installing python-psutil... installing python-trustme... installing python-retrying... installing python-lazy-object-proxy... installing python-wrapt... installing python-astroid... installing python-colorama... installing python-dill... Optional dependencies for python-dill python-objgraph: graph support installing python-toml... installing python-isort... installing python-mccabe... installing python-tomlkit... installing python-pylint... Optional dependencies for python-pylint graphviz: Enable output formats other than dot or vcg installing python-gcp-devrel-py-tools... installing python-flaky... installing python-dateutil... [?25h==> Retrieving sources...  -> Found python-urllib3-1.26.13.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting python-urllib3-1.26.13.tar.gz with bsdtar ==> Starting build()... /usr/lib/python3.10/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'provides-extra' will not be supported in future versions. Please use the underscore name 'provides_extra' instead warnings.warn( /usr/lib/python3.10/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'requires-dist' will not be supported in future versions. Please use the underscore name 'requires_dist' instead warnings.warn( /usr/lib/python3.10/site-packages/setuptools/config/setupcfg.py:520: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead. warnings.warn(msg, warning_class) running build running build_py creating build creating build/lib creating build/lib/urllib3 copying src/urllib3/__init__.py -> build/lib/urllib3 copying src/urllib3/_collections.py -> build/lib/urllib3 copying src/urllib3/_version.py -> build/lib/urllib3 copying src/urllib3/connection.py -> build/lib/urllib3 copying src/urllib3/connectionpool.py -> build/lib/urllib3 copying src/urllib3/exceptions.py -> build/lib/urllib3 copying src/urllib3/fields.py -> build/lib/urllib3 copying src/urllib3/filepost.py -> build/lib/urllib3 copying src/urllib3/poolmanager.py -> build/lib/urllib3 copying src/urllib3/request.py -> build/lib/urllib3 copying src/urllib3/response.py -> build/lib/urllib3 creating build/lib/urllib3/packages copying src/urllib3/packages/__init__.py -> build/lib/urllib3/packages copying src/urllib3/packages/six.py -> build/lib/urllib3/packages creating build/lib/urllib3/packages/backports copying src/urllib3/packages/backports/__init__.py -> build/lib/urllib3/packages/backports copying src/urllib3/packages/backports/makefile.py -> build/lib/urllib3/packages/backports creating build/lib/urllib3/contrib copying src/urllib3/contrib/__init__.py -> build/lib/urllib3/contrib copying src/urllib3/contrib/_appengine_environ.py -> build/lib/urllib3/contrib copying src/urllib3/contrib/appengine.py -> build/lib/urllib3/contrib copying src/urllib3/contrib/ntlmpool.py -> build/lib/urllib3/contrib copying src/urllib3/contrib/pyopenssl.py -> build/lib/urllib3/contrib copying src/urllib3/contrib/securetransport.py -> build/lib/urllib3/contrib copying src/urllib3/contrib/socks.py -> build/lib/urllib3/contrib creating build/lib/urllib3/contrib/_securetransport copying src/urllib3/contrib/_securetransport/__init__.py -> build/lib/urllib3/contrib/_securetransport copying src/urllib3/contrib/_securetransport/bindings.py -> build/lib/urllib3/contrib/_securetransport copying src/urllib3/contrib/_securetransport/low_level.py -> build/lib/urllib3/contrib/_securetransport creating build/lib/urllib3/util copying src/urllib3/util/__init__.py -> build/lib/urllib3/util copying src/urllib3/util/connection.py -> build/lib/urllib3/util copying src/urllib3/util/proxy.py -> build/lib/urllib3/util copying src/urllib3/util/queue.py -> build/lib/urllib3/util copying src/urllib3/util/request.py -> build/lib/urllib3/util copying src/urllib3/util/response.py -> build/lib/urllib3/util copying src/urllib3/util/retry.py -> build/lib/urllib3/util copying src/urllib3/util/ssl_.py -> build/lib/urllib3/util copying src/urllib3/util/ssl_match_hostname.py -> build/lib/urllib3/util copying src/urllib3/util/ssltransport.py -> build/lib/urllib3/util copying src/urllib3/util/timeout.py -> build/lib/urllib3/util copying src/urllib3/util/url.py -> build/lib/urllib3/util copying src/urllib3/util/wait.py -> build/lib/urllib3/util sphinx-build -b html -d _build/doctrees '-W' . _build/html Running Sphinx v5.3.0 making output directory... done loading intersphinx inventory from https://docs.python.org/3/objects.inv... building [mo]: targets for 0 po files that are out of date building [html]: targets for 21 source files that are out of date updating environment: [new config] 21 added, 0 changed, 0 removed reading sources... [ 4%] advanced-usage reading sources... [ 9%] contributing reading sources... [ 14%] index reading sources... [ 19%] reference/contrib/appengine reading sources... [ 23%] reference/contrib/index reading sources... [ 28%] reference/contrib/ntlmpool reading sources... [ 33%] reference/contrib/pyopenssl reading sources... [ 38%] reference/contrib/securetransport reading sources... [ 42%] reference/contrib/socks reading sources... [ 47%] reference/index reading sources... [ 52%] reference/urllib3.connection reading sources... [ 57%] reference/urllib3.connectionpool reading sources... [ 61%] reference/urllib3.exceptions reading sources... [ 66%] reference/urllib3.fields reading sources... [ 71%] reference/urllib3.poolmanager reading sources... [ 76%] reference/urllib3.request reading sources... [ 80%] reference/urllib3.response reading sources... [ 85%] reference/urllib3.util reading sources... [ 90%] sponsors reading sources... [ 95%] user-guide reading sources... [100%] v2-roadmap looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 4%] advanced-usage writing output... [ 9%] contributing writing output... [ 14%] index writing output... [ 19%] reference/contrib/appengine writing output... [ 23%] reference/contrib/index writing output... [ 28%] reference/contrib/ntlmpool writing output... [ 33%] reference/contrib/pyopenssl writing output... [ 38%] reference/contrib/securetransport writing output... [ 42%] reference/contrib/socks writing output... [ 47%] reference/index writing output... [ 52%] reference/urllib3.connection writing output... [ 57%] reference/urllib3.connectionpool writing output... [ 61%] reference/urllib3.exceptions writing output... [ 66%] reference/urllib3.fields writing output... [ 71%] reference/urllib3.poolmanager writing output... [ 76%] reference/urllib3.request writing output... [ 80%] reference/urllib3.response writing output... [ 85%] reference/urllib3.util writing output... [ 90%] sponsors writing output... [ 95%] user-guide writing output... [100%] v2-roadmap generating indices... genindex py-modindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded. The HTML pages are in _build/html. Build finished. The HTML pages are in _build/html. ==> Starting check()... /usr/lib/python3.10/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'provides-extra' will not be supported in future versions. Please use the underscore name 'provides_extra' instead warnings.warn( /usr/lib/python3.10/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'requires-dist' will not be supported in future versions. Please use the underscore name 'requires_dist' instead warnings.warn( /usr/lib/python3.10/site-packages/setuptools/config/setupcfg.py:520: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead. warnings.warn(msg, warning_class) running pytest /usr/lib/python3.10/site-packages/setuptools/command/test.py:194: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ir_d = dist.fetch_build_eggs(dist.install_requires) WARNING: The wheel package is not available. /usr/lib/python3.10/site-packages/setuptools/command/test.py:195: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. tr_d = dist.fetch_build_eggs(dist.tests_require or []) WARNING: The wheel package is not available. /usr/lib/python3.10/site-packages/setuptools/command/test.py:196: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. er_d = dist.fetch_build_eggs( WARNING: The wheel package is not available. running egg_info creating src/urllib3.egg-info writing src/urllib3.egg-info/PKG-INFO writing dependency_links to src/urllib3.egg-info/dependency_links.txt writing requirements to src/urllib3.egg-info/requires.txt writing top-level names to src/urllib3.egg-info/top_level.txt writing manifest file 'src/urllib3.egg-info/SOURCES.txt' reading manifest file 'src/urllib3.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'Makefile' adding license file 'LICENSE.txt' writing manifest file 'src/urllib3.egg-info/SOURCES.txt' running build_ext ============================= test session starts ============================== platform linux -- Python 3.10.9, pytest-7.2.2, pluggy-1.0.0 rootdir: /build/python-urllib3/src/urllib3-1.26.13, configfile: setup.cfg plugins: flaky-3.7.0 collected 1980 items / 56 deselected / 1924 selected test/test_collections.py ....................................s [ 1%] test/test_compatibility.py ... [ 2%] test/test_connection.py .............. [ 2%] test/test_connectionpool.py ............................................ [ 5%] ............................ [ 6%] test/test_exceptions.py ............. [ 7%] test/test_fields.py ............... [ 8%] test/test_filepost.py ........... [ 8%] test/test_no_ssl.py .. [ 8%] test/test_poolmanager.py .............................. [ 10%] test/test_proxymanager.py ...... [ 10%] test/test_queue_monkeypatch.py . [ 10%] test/test_response.py .................................................. [ 13%] .................. [ 14%] test/test_retry.py ................................ [ 15%] test/test_retry_deprecated.py .......................................... [ 17%] . [ 18%] test/test_ssl.py .................................. [ 19%] test/test_ssltransport.py ............... [ 20%] test/test_util.py ...................................................... [ 23%] ........................................................................ [ 27%] ...............................................................ss..s...s [ 30%] ........................................................................ [ 34%] [ 34%] test/test_wait.py ............. [ 35%] test/contrib/test_pyopenssl.py .....................................200 GET / (127.0.0.1) 1.94ms .... [ 37%] .........s.sssss..........ssssssssssssssssssssssssssssssssssssssssssssss [ 41%] ssssssssssssssssssssssssssssssssssssssss....................200 GET / (127.0.0.1) 7.28ms ............ [ 44%] .......s......................200 GET / (127.0.0.1) 3.03ms ....................s..................... [ 48%] ..F..Exception in thread Thread-58: Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 134, in run self.server = self._start_server() File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 130, in _start_server self.socket_handler(sock) File "/build/python-urllib3/src/urllib3-1.26.13/test/with_dummyserver/test_socketlevel.py", line 1276, in socket_handler ssl_sock = ssl.wrap_socket( File "/usr/lib/python3.10/ssl.py", line 1442, in wrap_socket F return context.wrap_socket( File "/usr/lib/python3.10/ssl.py", line 513, in wrap_socket ....Exception in thread Thread-61: Traceback (most recent call last): Exception in thread Thread-62: Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner Exception in thread Thread-63: Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner Exception in thread Thread-64: self.run() self.run() File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 134, in run File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 134, in run self.run() self.server = self._start_server() Traceback (most recent call last): File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 130, in _start_server File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 134, in run self.server = self._start_server() self.socket_handler(sock) File "/build/python-urllib3/src/urllib3-1.26.13/test/with_dummyserver/test_socketlevel.py", line 1411, in socket_handler File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 130, in _start_server self.server = self._start_server() ssl_sock = ssl.wrap_socket( File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 130, in _start_server self.socket_handler(sock) File "/build/python-urllib3/src/urllib3-1.26.13/test/with_dummyserver/test_socketlevel.py", line 1411, in socket_handler File "/usr/lib/python3.10/ssl.py", line 1442, in wrap_socket self.socket_handler(sock) ssl_sock = ssl.wrap_socket( return context.wrap_socket( File "/usr/lib/python3.10/ssl.py", line 513, in wrap_socket File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner File "/usr/lib/python3.10/ssl.py", line 1442, in wrap_socket File "/build/python-urllib3/src/urllib3-1.26.13/test/with_dummyserver/test_socketlevel.py", line 1411, in socket_handler return self.sslsocket_class._create( File "/usr/lib/python3.10/ssl.py", line 1071, in _create self.run() File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 134, in run self.do_handshake() File "/usr/lib/python3.10/ssl.py", line 1342, in do_handshake ssl_sock = ssl.wrap_socket( return context.wrap_socket( self.server = self._start_server() File "/usr/lib/python3.10/ssl.py", line 513, in wrap_socket self._sslobj.do_handshake() File "/usr/lib/python3.10/ssl.py", line 1442, in wrap_socket ssl.SSLZeroReturnError: TLS/SSL connection has been closed (EOF) (_ssl.c:997) return self.sslsocket_class._create( File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 130, in _start_server return context.wrap_socket( File "/usr/lib/python3.10/ssl.py", line 1071, in _create File "/usr/lib/python3.10/ssl.py", line 513, in wrap_socket self.socket_handler(sock) return self.sslsocket_class._create( File "/build/python-urllib3/src/urllib3-1.26.13/test/with_dummyserver/test_socketlevel.py", line 1411, in socket_handler File "/usr/lib/python3.10/ssl.py", line 1071, in _create self.do_handshake() File "/usr/lib/python3.10/ssl.py", line 1342, in do_handshake self.do_handshake() ssl_sock = ssl.wrap_socket( File "/usr/lib/python3.10/ssl.py", line 1342, in do_handshake File "/usr/lib/python3.10/ssl.py", line 1442, in wrap_socket self._sslobj.do_handshake() ssl.SSLZeroReturnError: TLS/SSL connection has been closed (EOF) (_ssl.c:997) self._sslobj.do_handshake() ssl.SSLZeroReturnError: TLS/SSL connection has been closed (EOF) (_ssl.c:997) return context.wrap_socket( File "/usr/lib/python3.10/ssl.py", line 513, in wrap_socket return self.sslsocket_class._create( File "/usr/lib/python3.10/ssl.py", line 1071, in _create F self.do_handshake() File "/usr/lib/python3.10/ssl.py", line 1342, in do_handshake self._sslobj.do_handshake() ssl.SSLZeroReturnError: TLS/SSL connection has been closed (EOF) (_ssl.c:997) .^C^C^CException in thread Thread-60: Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 134, in run self.server = self._start_server() File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 130, in _start_server self.socket_handler(sock) File "/build/python-urllib3/src/urllib3-1.26.13/test/with_dummyserver/test_socketlevel.py", line 1374, in socket_handler ssl_sock = ssl.wrap_socket( File "/usr/lib/python3.10/ssl.py", line 1442, in wrap_socket return context.wrap_socket( File "/usr/lib/python3.10/ssl.py", line 513, in wrap_socket return self.sslsocket_class._create( File "/usr/lib/python3.10/ssl.py", line 1071, in _create self.do_handshake() File "/usr/lib/python3.10/ssl.py", line 1342, in do_handshake self._sslobj.do_handshake() ssl.SSLZeroReturnError: TLS/SSL connection has been closed (EOF) (_ssl.c:997) =================================== FAILURES =================================== ______ TestSocketClosing.test_closing_response_actually_closes_connection ______ self = def test_closing_response_actually_closes_connection(self): done_closing = Event() complete = Event() def socket_handler(listener): sock = listener.accept()[0] buf = b"" while not buf.endswith(b"\r\n\r\n"): buf = sock.recv(65536) sock.send( ( "HTTP/1.1 200 OK\r\n" "Content-Type: text/plain\r\n" "Content-Length: 0\r\n" "\r\n" ).encode("utf-8") ) # Wait for the socket to close. done_closing.wait(timeout=LONG_TIMEOUT) # Look for the empty string to show that the connection got closed. # Don't get stuck in a timeout. sock.settimeout(LONG_TIMEOUT) new_data = sock.recv(65536) assert not new_data sock.close() complete.set() self._start_server(socket_handler) with HTTPConnectionPool(self.host, self.port) as pool: response = pool.request("GET", "/", retries=0, preload_content=False) assert response.status == 200 response.close() done_closing.set() # wait until the socket in our pool gets closed successful = complete.wait(timeout=LONG_TIMEOUT) > assert successful, "Timed out waiting for connection close" E AssertionError: Timed out waiting for connection close E assert False test/with_dummyserver/test_socketlevel.py:861: AssertionError _______________ TestSSL.test_ssl_failed_fingerprint_verification _______________ self = def test_ssl_failed_fingerprint_verification(self): def socket_handler(listener): for i in range(2): sock = listener.accept()[0] ssl_sock = ssl.wrap_socket( sock, server_side=True, keyfile=DEFAULT_CERTS["keyfile"], certfile=DEFAULT_CERTS["certfile"], ca_certs=DEFAULT_CA, ) ssl_sock.send( b"HTTP/1.1 200 OK\r\n" b"Content-Type: text/plain\r\n" b"Content-Length: 5\r\n\r\n" b"Hello" ) ssl_sock.close() sock.close() self._start_server(socket_handler) # GitHub's fingerprint. Valid, but not matching. fingerprint = "A0:C4:A7:46:00:ED:A7:2D:C0:BE:CB:9A:8C:B6:07:CA:58:EE:74:5E" def request(): pool = HTTPSConnectionPool( self.host, self.port, assert_fingerprint=fingerprint ) try: timeout = Timeout(connect=LONG_TIMEOUT, read=SHORT_TIMEOUT) response = pool.urlopen( "GET", "/", preload_content=False, retries=0, timeout=timeout ) response.read() finally: pool.close() with pytest.raises(MaxRetryError) as cm: request() > assert isinstance(cm.value.reason, SSLError) E assert False E + where False = isinstance(ReadTimeoutError("HTTPSConnectionPool(host='localhost', port=42707): Read timed out. (read timeout=0.01)"), SSLError) E + where ReadTimeoutError("HTTPSConnectionPool(host='localhost', port=42707): Read timed out. (read timeout=0.01)") = MaxRetryError('HTTPSConnectionPool(host=\'localhost\', port=42707): Max retries exceeded with url: / (Caused by ReadTimeoutError("HTTPSConnectionPool(host=\'localhost\', port=42707): Read timed out. (read timeout=0.01)"))').reason E + where MaxRetryError('HTTPSConnectionPool(host=\'localhost\', port=42707): Max retries exceeded with url: / (Caused by ReadTimeoutError("HTTPSConnectionPool(host=\'localhost\', port=42707): Read timed out. (read timeout=0.01)"))') = .value test/with_dummyserver/test_socketlevel.py:1313: AssertionError ____________ TestSSL.test_ssl_custom_validation_failure_terminates _____________ self = sock = server_side = False, do_handshake_on_connect = True, suppress_ragged_eofs = True server_hostname = b'localhost' def wrap_socket( self, sock, server_side=False, do_handshake_on_connect=True, suppress_ragged_eofs=True, server_hostname=None, ): cnx = OpenSSL.SSL.Connection(self._ctx, sock) if isinstance(server_hostname, six.text_type): # Platform-specific: Python 3 server_hostname = server_hostname.encode("utf-8") if server_hostname is not None: cnx.set_tlsext_host_name(server_hostname) cnx.set_connect_state() while True: try: > cnx.do_handshake() src/urllib3/contrib/pyopenssl.py:505: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def do_handshake(self): """ Perform an SSL handshake (usually called after :meth:`renegotiate` or one of :meth:`set_accept_state` or :meth:`set_connect_state`). This can raise the same exceptions as :meth:`send` and :meth:`recv`. :return: None. """ result = _lib.SSL_do_handshake(self._ssl) > self._raise_ssl_error(self._ssl, result) /usr/lib/python3.10/site-packages/OpenSSL/SSL.py:2075: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = ssl = , result = -1 def _raise_ssl_error(self, ssl, result): if self._context._verify_helper is not None: self._context._verify_helper.raise_if_problem() if self._context._alpn_select_helper is not None: self._context._alpn_select_helper.raise_if_problem() if self._context._ocsp_helper is not None: self._context._ocsp_helper.raise_if_problem() error = _lib.SSL_get_error(ssl, result) if error == _lib.SSL_ERROR_WANT_READ: > raise WantReadError() E OpenSSL.SSL.WantReadError /usr/lib/python3.10/site-packages/OpenSSL/SSL.py:1682: WantReadError During handling of the above exception, another exception occurred: self = conn = method = 'GET', url = '/' timeout = Timeout(connect=0.01, read=0.01, total=None), chunked = False httplib_request_kw = {'body': None, 'headers': {}} timeout_obj = Timeout(connect=0.01, read=0.01, total=None) def _make_request( self, conn, method, url, timeout=_Default, chunked=False, **httplib_request_kw ): """ Perform a request on a given urllib connection object taken from our pool. :param conn: a connection from one of our connection pools :param timeout: Socket timeout in seconds for the request. This can be a float or integer, which will set the same timeout value for the socket connect and the socket read, or an instance of :class:`urllib3.util.Timeout`, which gives you more fine-grained control over your timeouts. """ self.num_requests += 1 timeout_obj = self._get_timeout(timeout) timeout_obj.start_connect() conn.timeout = timeout_obj.connect_timeout # Trigger any extra validation we need to do. try: > self._validate_conn(conn) src/urllib3/connectionpool.py:386: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn = def _validate_conn(self, conn): """ Called right before a request is made, after the socket is created. """ super(HTTPSConnectionPool, self)._validate_conn(conn) # Force connect early to allow us to validate the connection. if not getattr(conn, "sock", None): # AppEngine might not have `.sock` > conn.connect() src/urllib3/connectionpool.py:1042: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def connect(self): # Add certificate verification self.sock = conn = self._new_conn() hostname = self.host tls_in_tls = False if self._is_using_tunnel(): if self.tls_in_tls_required: self.sock = conn = self._connect_tls_proxy(hostname, conn) tls_in_tls = True # Calls self._set_hostport(), so self.host is # self._tunnel_host below. self._tunnel() # Mark this connection as not reusable self.auto_open = 0 # Override the host with the one we're requesting data from. hostname = self._tunnel_host server_hostname = hostname if self.server_hostname is not None: server_hostname = self.server_hostname is_time_off = datetime.date.today() < RECENT_DATE if is_time_off: warnings.warn( ( "System time is way off (before {0}). This will probably " "lead to SSL verification errors" ).format(RECENT_DATE), SystemTimeWarning, ) # Wrap socket using verification with the root certs in # trusted_root_certs default_ssl_context = False if self.ssl_context is None: default_ssl_context = True self.ssl_context = create_urllib3_context( ssl_version=resolve_ssl_version(self.ssl_version), cert_reqs=resolve_cert_reqs(self.cert_reqs), ) context = self.ssl_context context.verify_mode = resolve_cert_reqs(self.cert_reqs) # Try to load OS default certs if none are given. # Works well on Windows (requires Python3.4+) if ( not self.ca_certs and not self.ca_cert_dir and not self.ca_cert_data and default_ssl_context and hasattr(context, "load_default_certs") ): context.load_default_certs() > self.sock = ssl_wrap_socket( sock=conn, keyfile=self.key_file, certfile=self.cert_file, key_password=self.key_password, ca_certs=self.ca_certs, ca_cert_dir=self.ca_cert_dir, ca_cert_data=self.ca_cert_data, server_hostname=server_hostname, ssl_context=context, tls_in_tls=tls_in_tls, ) src/urllib3/connection.py:414: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ sock = keyfile = None, certfile = None, cert_reqs = None ca_certs = '/tmp/pytest-of-builduser/pytest-0/test_ssl_custom_validation_fai0/ca.pem' server_hostname = 'localhost', ssl_version = None, ciphers = None ssl_context = ca_cert_dir = None, key_password = None, ca_cert_data = None, tls_in_tls = False def ssl_wrap_socket( sock, keyfile=None, certfile=None, cert_reqs=None, ca_certs=None, server_hostname=None, ssl_version=None, ciphers=None, ssl_context=None, ca_cert_dir=None, key_password=None, ca_cert_data=None, tls_in_tls=False, ): """ All arguments except for server_hostname, ssl_context, and ca_cert_dir have the same meaning as they do when using :func:`ssl.wrap_socket`. :param server_hostname: When SNI is supported, the expected hostname of the certificate :param ssl_context: A pre-made :class:`SSLContext` object. If none is provided, one will be created using :func:`create_urllib3_context`. :param ciphers: A string of ciphers we wish the client to support. :param ca_cert_dir: A directory containing CA certificates in multiple separate files, as supported by OpenSSL's -CApath flag or the capath argument to SSLContext.load_verify_locations(). :param key_password: Optional password if the keyfile is encrypted. :param ca_cert_data: Optional string containing CA certificates in PEM format suitable for passing as the cadata parameter to SSLContext.load_verify_locations() :param tls_in_tls: Use SSLTransport to wrap the existing socket. """ context = ssl_context if context is None: # Note: This branch of code and all the variables in it are no longer # used by urllib3 itself. We should consider deprecating and removing # this code. context = create_urllib3_context(ssl_version, cert_reqs, ciphers=ciphers) if ca_certs or ca_cert_dir or ca_cert_data: try: context.load_verify_locations(ca_certs, ca_cert_dir, ca_cert_data) except (IOError, OSError) as e: raise SSLError(e) elif ssl_context is None and hasattr(context, "load_default_certs"): # try to load OS default certs; works well on Windows (require Python3.4+) context.load_default_certs() # Attempt to detect if we get the goofy behavior of the # keyfile being encrypted and OpenSSL asking for the # passphrase via the terminal and instead error out. if keyfile and key_password is None and _is_key_file_encrypted(keyfile): raise SSLError("Client private key is encrypted, password is required") if certfile: if key_password is None: context.load_cert_chain(certfile, keyfile) else: context.load_cert_chain(certfile, keyfile, key_password) try: if hasattr(context, "set_alpn_protocols"): context.set_alpn_protocols(ALPN_PROTOCOLS) except NotImplementedError: # Defensive: in CI, we always have set_alpn_protocols pass # If we detect server_hostname is an IP address then the SNI # extension should not be used according to RFC3546 Section 3.1 use_sni_hostname = server_hostname and not is_ipaddress(server_hostname) # SecureTransport uses server_hostname in certificate verification. send_sni = (use_sni_hostname and HAS_SNI) or ( IS_SECURETRANSPORT and server_hostname ) # Do not warn the user if server_hostname is an invalid SNI hostname. if not HAS_SNI and use_sni_hostname: warnings.warn( "An HTTPS request has been made, but the SNI (Server Name " "Indication) extension to TLS is not available on this platform. " "This may cause the server to present an incorrect TLS " "certificate, which can cause validation failures. You can upgrade to " "a newer version of Python to solve this. For more information, see " "https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html" "#ssl-warnings", SNIMissingWarning, ) if send_sni: > ssl_sock = _ssl_wrap_socket_impl( sock, context, tls_in_tls, server_hostname=server_hostname ) src/urllib3/util/ssl_.py:449: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ sock = ssl_context = tls_in_tls = False, server_hostname = 'localhost' def _ssl_wrap_socket_impl(sock, ssl_context, tls_in_tls, server_hostname=None): if tls_in_tls: if not SSLTransport: # Import error, ssl is not available. raise ProxySchemeUnsupported( "TLS in TLS requires support for the 'ssl' module" ) SSLTransport._validate_ssl_context_for_tls_in_tls(ssl_context) return SSLTransport(sock, ssl_context, server_hostname) if server_hostname: > return ssl_context.wrap_socket(sock, server_hostname=server_hostname) src/urllib3/util/ssl_.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = sock = server_side = False, do_handshake_on_connect = True, suppress_ragged_eofs = True server_hostname = b'localhost' def wrap_socket( self, sock, server_side=False, do_handshake_on_connect=True, suppress_ragged_eofs=True, server_hostname=None, ): cnx = OpenSSL.SSL.Connection(self._ctx, sock) if isinstance(server_hostname, six.text_type): # Platform-specific: Python 3 server_hostname = server_hostname.encode("utf-8") if server_hostname is not None: cnx.set_tlsext_host_name(server_hostname) cnx.set_connect_state() while True: try: cnx.do_handshake() except OpenSSL.SSL.WantReadError: if not util.wait_for_read(sock, sock.gettimeout()): > raise timeout("select timed out") E TimeoutError: select timed out src/urllib3/contrib/pyopenssl.py:508: TimeoutError During handling of the above exception, another exception occurred: self = tmpdir = local('/tmp/pytest-of-builduser/pytest-0/test_ssl_custom_validation_fai0') def test_ssl_custom_validation_failure_terminates(self, tmpdir): """ Ensure that the underlying socket is terminated if custom validation fails. """ server_closed = Event() def is_closed_socket(sock): try: sock.settimeout(SHORT_TIMEOUT) # Python 3 sock.recv(1) # Python 2 except (OSError, socket.error): return True return False def socket_handler(listener): sock = listener.accept()[0] try: _ = ssl.wrap_socket( sock, server_side=True, keyfile=DEFAULT_CERTS["keyfile"], certfile=DEFAULT_CERTS["certfile"], ca_certs=DEFAULT_CA, ) except ssl.SSLError as e: assert "alert unknown ca" in str(e) if is_closed_socket(sock): server_closed.set() self._start_server(socket_handler) # client uses a different ca other_ca = trustme.CA() other_ca_path = str(tmpdir / "ca.pem") other_ca.cert_pem.write_to_path(other_ca_path) with HTTPSConnectionPool( self.host, self.port, cert_reqs="REQUIRED", ca_certs=other_ca_path ) as pool: with pytest.raises(SSLError): > pool.request("GET", "/", retries=False, timeout=LONG_TIMEOUT) test/with_dummyserver/test_socketlevel.py:1499: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/urllib3/request.py:74: in request return self.request_encode_url( src/urllib3/request.py:96: in request_encode_url return self.urlopen(method, url, **extra_kw) src/urllib3/connectionpool.py:787: in urlopen retries = retries.increment( src/urllib3/util/retry.py:525: in increment raise six.reraise(type(error), error, _stacktrace) src/urllib3/packages/six.py:770: in reraise raise value src/urllib3/connectionpool.py:703: in urlopen httplib_response = self._make_request( src/urllib3/connectionpool.py:389: in _make_request self._raise_timeout(err=e, url=url, timeout_value=conn.timeout) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = err = TimeoutError('select timed out'), url = '/', timeout_value = 0.01 def _raise_timeout(self, err, url, timeout_value): """Is the error actually a timeout? Will raise a ReadTimeout or pass""" if isinstance(err, SocketTimeout): > raise ReadTimeoutError( self, url, "Read timed out. (read timeout=%s)" % timeout_value ) E urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='localhost', port=41925): Read timed out. (read timeout=0.01) src/urllib3/connectionpool.py:340: ReadTimeoutError =============================== warnings summary =============================== test/__init__.py:25 /build/python-urllib3/src/urllib3-1.26.13/test/__init__.py:25: DeprecationWarning: 'urllib3.contrib.pyopenssl' module is deprecated and will be removed in a future release of urllib3 2.x. Read more in this issue: https://github.com/urllib3/urllib3/issues/2680 import urllib3.contrib.pyopenssl as pyopenssl test/conftest.py:211 /build/python-urllib3/src/urllib3-1.26.13/test/conftest.py:211: PytestDeprecationWarning: @pytest.yield_fixture is deprecated. Use @pytest.fixture instead; they are the same. def stub_timezone(request): ../../../../usr/lib/python3.10/site-packages/gcp_devrel/testing/appengine.py:121 /usr/lib/python3.10/site-packages/gcp_devrel/testing/appengine.py:121: PytestDeprecationWarning: @pytest.yield_fixture is deprecated. Use @pytest.fixture instead; they are the same. def testbed(): test/test_retry.py:323 /build/python-urllib3/src/urllib3-1.26.13/test/test_retry.py:323: PytestUnknownMarkWarning: Unknown pytest.mark.freeze_time - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.freeze_time("2019-06-03 11:00:00", tz_offset=0) test/test_retry_deprecated.py:325 /build/python-urllib3/src/urllib3-1.26.13/test/test_retry_deprecated.py:325: PytestUnknownMarkWarning: Unknown pytest.mark.freeze_time - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.freeze_time("2019-06-03 11:00:00", tz_offset=0) test/test_ssltransport.py:102 /build/python-urllib3/src/urllib3-1.26.13/test/test_ssltransport.py:102: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.timeout(PER_TEST_TIMEOUT) test/test_ssltransport.py:111 /build/python-urllib3/src/urllib3-1.26.13/test/test_ssltransport.py:111: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.timeout(PER_TEST_TIMEOUT) test/test_ssltransport.py:124 /build/python-urllib3/src/urllib3-1.26.13/test/test_ssltransport.py:124: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.timeout(PER_TEST_TIMEOUT) test/test_ssltransport.py:138 /build/python-urllib3/src/urllib3-1.26.13/test/test_ssltransport.py:138: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.timeout(PER_TEST_TIMEOUT) test/test_ssltransport.py:152 /build/python-urllib3/src/urllib3-1.26.13/test/test_ssltransport.py:152: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.timeout(PER_TEST_TIMEOUT) test/test_ssltransport.py:188 /build/python-urllib3/src/urllib3-1.26.13/test/test_ssltransport.py:188: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.timeout(PER_TEST_TIMEOUT) test/test_ssltransport.py:216 /build/python-urllib3/src/urllib3-1.26.13/test/test_ssltransport.py:216: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.timeout(PER_TEST_TIMEOUT) test/test_ssltransport.py:347 /build/python-urllib3/src/urllib3-1.26.13/test/test_ssltransport.py:347: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.timeout(PER_TEST_TIMEOUT) test/test_ssltransport.py:369 /build/python-urllib3/src/urllib3-1.26.13/test/test_ssltransport.py:369: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.timeout(PER_TEST_TIMEOUT) test/test_ssltransport.py:391 /build/python-urllib3/src/urllib3-1.26.13/test/test_ssltransport.py:391: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.timeout(PER_TEST_TIMEOUT) test/test_ssltransport.py:427 /build/python-urllib3/src/urllib3-1.26.13/test/test_ssltransport.py:427: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.timeout(PER_TEST_TIMEOUT) test/test_ssltransport.py:459 /build/python-urllib3/src/urllib3-1.26.13/test/test_ssltransport.py:459: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.timeout(PER_TEST_TIMEOUT) test/test_ssltransport.py:484 /build/python-urllib3/src/urllib3-1.26.13/test/test_ssltransport.py:484: PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.timeout(PER_TEST_TIMEOUT) test/test_ssl.py::test_context_sni_with_ip_address[False-www.python.org-False] /build/python-urllib3/src/urllib3-1.26.13/src/urllib3/util/ssl_.py:437: SNIMissingWarning: An HTTPS request has been made, but the SNI (Server Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings warnings.warn( test/test_ssltransport.py::SingleTLSLayerTestCase::test_ssl_object_attributes /build/python-urllib3/src/urllib3-1.26.13/src/urllib3/util/ssltransport.py:169: DeprecationWarning: ssl NPN is deprecated, use ALPN instead return self.sslobj.selected_npn_protocol() test/test_ssltransport.py::TlsInTlsTestCase::test_wrong_sni_hint /usr/lib/python3.10/site-packages/_pytest/threadexception.py:73: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-9 Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 134, in run self.server = self._start_server() File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 130, in _start_server self.socket_handler(sock) File "/build/python-urllib3/src/urllib3-1.26.13/test/test_ssltransport.py", line 339, in socket_handler with cls.server_context.wrap_socket(sock, server_side=True) as ssock: File "/usr/lib/python3.10/ssl.py", line 513, in wrap_socket return self.sslsocket_class._create( File "/usr/lib/python3.10/ssl.py", line 1071, in _create self.do_handshake() File "/usr/lib/python3.10/ssl.py", line 1342, in do_handshake self._sslobj.do_handshake() ssl.SSLZeroReturnError: TLS/SSL connection has been closed (EOF) (_ssl.c:997) warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg)) test/contrib/test_pyopenssl.py::TestHTTPS::test_simple /usr/lib/python3.10/site-packages/tornado/ioloop.py:265: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() test/contrib/test_pyopenssl.py: 10 warnings /build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py:157: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated ctx = ssl.SSLContext(ssl_version) test/contrib/test_pyopenssl.py::TestHTTPS::test_https_timeout test/contrib/test_pyopenssl.py::TestHTTPS::test_tunnel test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_https_timeout test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_tunnel test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_https_timeout test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_tunnel /build/python-urllib3/src/urllib3-1.26.13/src/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings warnings.warn( test/contrib/test_pyopenssl.py::TestHTTPS::test_alpn_default test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_alpn_default test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_alpn_default /build/python-urllib3/src/urllib3-1.26.13/test/__init__.py:70: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated ctx = ctx_cls(protocol=ssl_.PROTOCOL_TLS) test/contrib/test_pyopenssl.py::TestHTTPS_IPv6Addr::test_strip_square_brackets_before_validating[::1] test/contrib/test_pyopenssl.py::TestHTTPS_IPv6Addr::test_strip_square_brackets_before_validating[[::1]] /build/python-urllib3/src/urllib3-1.26.13/src/urllib3/connection.py:458: SubjectAltNameWarning: Certificate for ::1 has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/urllib3/urllib3/issues/497 for details.) warnings.warn( test/contrib/test_pyopenssl.py::TestHTTPS_NoSAN::test_common_name_without_san_with_different_common_name /build/python-urllib3/src/urllib3-1.26.13/src/urllib3/connection.py:458: SubjectAltNameWarning: Certificate for localhost has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/urllib3/urllib3/issues/497 for details.) warnings.warn( test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1::test_simple /build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py:157: DeprecationWarning: ssl.PROTOCOL_TLSv1 is deprecated ctx = ssl.SSLContext(ssl_version) test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_1::test_simple /build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py:157: DeprecationWarning: ssl.PROTOCOL_TLSv1_1 is deprecated ctx = ssl.SSLContext(ssl_version) test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_2::test_simple /build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py:157: DeprecationWarning: ssl.PROTOCOL_TLSv1_2 is deprecated ctx = ssl.SSLContext(ssl_version) test/contrib/test_pyopenssl.py::TestClientCerts::test_client_certs_two_files test/contrib/test_pyopenssl.py::TestClientCerts::test_client_certs_one_file test/contrib/test_pyopenssl.py::TestClientCerts::test_missing_client_certs_raises_error test/contrib/test_pyopenssl.py::TestClientCerts::test_client_cert_with_string_password test/contrib/test_pyopenssl.py::TestClientCerts::test_client_cert_with_bytes_password /build/python-urllib3/src/urllib3-1.26.13/test/with_dummyserver/test_socketlevel.py:176: DeprecationWarning: ssl.wrap_socket() is deprecated, use SSLContext.wrap_socket() return ssl.wrap_socket( test/contrib/test_pyopenssl.py: 17 warnings /usr/lib/python3.10/ssl.py:1434: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated context = SSLContext(ssl_version) test/contrib/test_pyopenssl.py::TestSSL::test_ssl_failure_midway_through_conn /build/python-urllib3/src/urllib3-1.26.13/test/with_dummyserver/test_socketlevel.py:1198: DeprecationWarning: ssl.wrap_socket() is deprecated, use SSLContext.wrap_socket() ssl_sock = ssl.wrap_socket( test/contrib/test_pyopenssl.py::TestSSL::test_ssl_failure_midway_through_conn /usr/lib/python3.10/site-packages/_pytest/threadexception.py:73: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-57 Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 134, in run self.server = self._start_server() File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 130, in _start_server self.socket_handler(sock) File "/build/python-urllib3/src/urllib3-1.26.13/test/with_dummyserver/test_socketlevel.py", line 1198, in socket_handler ssl_sock = ssl.wrap_socket( File "/usr/lib/python3.10/ssl.py", line 1442, in wrap_socket return context.wrap_socket( File "/usr/lib/python3.10/ssl.py", line 513, in wrap_socket return self.sslsocket_class._create( File "/usr/lib/python3.10/ssl.py", line 1071, in _create self.do_handshake() File "/usr/lib/python3.10/ssl.py", line 1342, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:997) warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg)) test/contrib/test_pyopenssl.py::TestSSL::test_ssl_failed_fingerprint_verification /build/python-urllib3/src/urllib3-1.26.13/test/with_dummyserver/test_socketlevel.py:1276: DeprecationWarning: ssl.wrap_socket() is deprecated, use SSLContext.wrap_socket() ssl_sock = ssl.wrap_socket( test/contrib/test_pyopenssl.py::TestSSL::test_retry_ssl_error /build/python-urllib3/src/urllib3-1.26.13/test/with_dummyserver/test_socketlevel.py:1323: DeprecationWarning: ssl.wrap_socket() is deprecated, use SSLContext.wrap_socket() ssl_sock = ssl.wrap_socket( test/contrib/test_pyopenssl.py::TestSSL::test_retry_ssl_error /build/python-urllib3/src/urllib3-1.26.13/test/with_dummyserver/test_socketlevel.py:1348: DeprecationWarning: ssl.wrap_socket() is deprecated, use SSLContext.wrap_socket() ssl_sock = ssl.wrap_socket( test/contrib/test_pyopenssl.py::TestSSL::test_ssl_load_default_certs_when_empty /build/python-urllib3/src/urllib3-1.26.13/test/with_dummyserver/test_socketlevel.py:1374: DeprecationWarning: ssl.wrap_socket() is deprecated, use SSLContext.wrap_socket() ssl_sock = ssl.wrap_socket( test/contrib/test_pyopenssl.py::TestSSL::test_ssl_dont_load_default_certs_when_given test/contrib/test_pyopenssl.py::TestSSL::test_ssl_dont_load_default_certs_when_given test/contrib/test_pyopenssl.py::TestSSL::test_ssl_dont_load_default_certs_when_given test/contrib/test_pyopenssl.py::TestSSL::test_ssl_dont_load_default_certs_when_given /build/python-urllib3/src/urllib3-1.26.13/test/with_dummyserver/test_socketlevel.py:1411: DeprecationWarning: ssl.wrap_socket() is deprecated, use SSLContext.wrap_socket() ssl_sock = ssl.wrap_socket( test/contrib/test_pyopenssl.py::TestSSL::test_ssl_custom_validation_failure_terminates /build/python-urllib3/src/urllib3-1.26.13/test/with_dummyserver/test_socketlevel.py:1476: DeprecationWarning: ssl.wrap_socket() is deprecated, use SSLContext.wrap_socket() _ = ssl.wrap_socket( test/contrib/test_pyopenssl.py::TestSSL::test_ssl_custom_validation_failure_terminates /usr/lib/python3.10/site-packages/_pytest/threadexception.py:73: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-65 Traceback (most recent call last): File "/build/python-urllib3/src/urllib3-1.26.13/test/with_dummyserver/test_socketlevel.py", line 1476, in socket_handler _ = ssl.wrap_socket( File "/usr/lib/python3.10/ssl.py", line 1442, in wrap_socket return context.wrap_socket( File "/usr/lib/python3.10/ssl.py", line 513, in wrap_socket return self.sslsocket_class._create( File "/usr/lib/python3.10/ssl.py", line 1071, in _create self.do_handshake() File "/usr/lib/python3.10/ssl.py", line 1342, in do_handshake self._sslobj.do_handshake() ssl.SSLZeroReturnError: TLS/SSL connection has been closed (EOF) (_ssl.c:997) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 134, in run self.server = self._start_server() File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 130, in _start_server self.socket_handler(sock) File "/build/python-urllib3/src/urllib3-1.26.13/test/with_dummyserver/test_socketlevel.py", line 1484, in socket_handler assert "alert unknown ca" in str(e) AssertionError: assert 'alert unknown ca' in 'TLS/SSL connection has been closed (EOF) (_ssl.c:997)' + where 'TLS/SSL connection has been closed (EOF) (_ssl.c:997)' = str(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:997)')) warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg)) test/contrib/test_pyopenssl.py::TestSSL::test_requesting_large_resources_via_ssl[True-None] test/contrib/test_pyopenssl.py::TestSSL::test_requesting_large_resources_via_ssl[False-None] /build/python-urllib3/src/urllib3-1.26.13/test/with_dummyserver/test_socketlevel.py:1523: DeprecationWarning: ssl.wrap_socket() is deprecated, use SSLContext.wrap_socket() ssl_sock = ssl.wrap_socket( test/contrib/test_pyopenssl.py::TestSSL::test_requesting_large_resources_via_ssl[False-None] /usr/lib/python3.10/site-packages/_pytest/threadexception.py:73: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-67 Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 134, in run self.server = self._start_server() File "/build/python-urllib3/src/urllib3-1.26.13/dummyserver/server.py", line 130, in _start_server self.socket_handler(sock) File "/build/python-urllib3/src/urllib3-1.26.13/test/with_dummyserver/test_socketlevel.py", line 1543, in socket_handler ssl_sock.sendall(b"0" * (content_length // chunks)) File "/usr/lib/python3.10/ssl.py", line 1237, in sendall v = self.send(byte_view[count:]) File "/usr/lib/python3.10/ssl.py", line 1206, in send return self._sslobj.write(data) ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2396) warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg)) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED test/contrib/test_pyopenssl.py::TestSocketClosing::test_closing_response_actually_closes_connection FAILED test/contrib/test_pyopenssl.py::TestSSL::test_ssl_failed_fingerprint_verification FAILED test/contrib/test_pyopenssl.py::TestSSL::test_ssl_custom_validation_failure_terminates !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! /usr/lib/python3.10/site-packages/OpenSSL/SSL.py:1980: KeyboardInterrupt (to show a full traceback on KeyboardInterrupt use --full-trace) = 3 failed, 846 passed, 99 skipped, 56 deselected, 84 warnings in 4884.99s (1:21:24) = ==> ERROR: Aborted by user! Exiting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/root5/build receiving incremental file list python-urllib3-1.26.13-1-riscv64-build.log python-urllib3-1.26.13-1-riscv64-check.log python-urllib3-1.26.13-1-x86_64-build.log python-urllib3-1.26.13-1-x86_64-check.log sent 100 bytes received 33,859 bytes 22,639.33 bytes/sec total size is 227,343 speedup is 6.69