D: [iurt_root_command] chroot warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend. Installing /home/iurt/rpmbuild/SRPMS/python-pytest-localserver-0.5.0-1.mga9.src.rpm Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.MtY6YW + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf pytest-localserver-0.5.0 + /usr/bin/gzip -dc /home/iurt/rpmbuild/SOURCES/pytest-localserver-0.5.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd pytest-localserver-0.5.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf pytest_localserver.egg-info + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.9r3Njm + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd pytest-localserver-0.5.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' /usr/lib/python3.9/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running build running build_py creating build creating build/lib creating build/lib/pytest_localserver copying pytest_localserver/plugin.py -> build/lib/pytest_localserver copying pytest_localserver/smtp.py -> build/lib/pytest_localserver copying pytest_localserver/http.py -> build/lib/pytest_localserver copying pytest_localserver/__init__.py -> build/lib/pytest_localserver copying pytest_localserver/https.py -> build/lib/pytest_localserver running egg_info creating pytest_localserver.egg-info writing pytest_localserver.egg-info/PKG-INFO writing dependency_links to pytest_localserver.egg-info/dependency_links.txt writing entry points to pytest_localserver.egg-info/entry_points.txt writing requirements to pytest_localserver.egg-info/requires.txt writing top-level names to pytest_localserver.egg-info/top_level.txt writing manifest file 'pytest_localserver.egg-info/SOURCES.txt' reading manifest file 'pytest_localserver.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'pytest_localserver.egg-info/SOURCES.txt' copying pytest_localserver/ca.crt -> build/lib/pytest_localserver copying pytest_localserver/server.pem -> build/lib/pytest_localserver + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.eDNMn0 + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64 '!=' / ']' + rm -rf /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64 ++ dirname /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64 + mkdir -p /home/iurt/rpmbuild/BUILDROOT + mkdir /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64 + cd pytest-localserver-0.5.0 + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + /usr/bin/python3 setup.py install -O1 --skip-build --root /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64 /usr/lib/python3.9/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running install /usr/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running install_lib creating /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr creating /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib creating /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9 creating /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages creating /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver copying build/lib/pytest_localserver/server.pem -> /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver copying build/lib/pytest_localserver/ca.crt -> /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver copying build/lib/pytest_localserver/https.py -> /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver copying build/lib/pytest_localserver/__init__.py -> /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver copying build/lib/pytest_localserver/http.py -> /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver copying build/lib/pytest_localserver/smtp.py -> /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver copying build/lib/pytest_localserver/plugin.py -> /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/https.py to https.cpython-39.pyc byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/__init__.py to __init__.cpython-39.pyc byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/http.py to http.cpython-39.pyc byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/smtp.py to smtp.cpython-39.pyc byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/plugin.py to plugin.cpython-39.pyc writing byte-compilation script '/tmp/tmpc278gfym.py' /usr/bin/python3 /tmp/tmpc278gfym.py removing /tmp/tmpc278gfym.py running install_egg_info running egg_info writing pytest_localserver.egg-info/PKG-INFO writing dependency_links to pytest_localserver.egg-info/dependency_links.txt writing entry points to pytest_localserver.egg-info/entry_points.txt writing requirements to pytest_localserver.egg-info/requires.txt writing top-level names to pytest_localserver.egg-info/top_level.txt reading manifest file 'pytest_localserver.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'pytest_localserver.egg-info/SOURCES.txt' Copying pytest_localserver.egg-info to /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver-0.5.0-py3.9.egg-info running install_scripts + rm -rfv /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/bin/__pycache__ + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 0.5.0-1.mga9 --unique-debug-suffix -0.5.0-1.mga9.aarch64 --unique-debug-src-base python-pytest-localserver-0.5.0-1.mga9.aarch64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /home/iurt/rpmbuild/BUILD/pytest-localserver-0.5.0 + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python3 1 0 Bytecompiling .py files below /home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9 using python3.9 + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.blbGPj + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd pytest-localserver-0.5.0 + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + PATH=/home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/bin:/usr/local/bin:/usr/bin:/usr/local/games:/usr/games:/usr/local/sbin:/usr/sbin:/home/iurt/.local/bin:/home/iurt/bin + PYTHONPATH=/home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib64/python3.9/site-packages:/home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages + PYTHONDONTWRITEBYTECODE=1 + /usr/bin/pytest ============================= test session starts ============================== platform linux -- Python 3.9.8, pytest-6.2.4, py-1.10.0, pluggy-1.0.0 rootdir: /home/iurt/rpmbuild/BUILD/pytest-localserver-0.5.0 plugins: localserver-0.5.0 collected 16 items tests/test_http.py ...... [ 37%] tests/test_https.py EEEEE [ 68%] tests/test_smtp.py ..... [100%] ==================================== ERRORS ==================================== __________________ ERROR at setup of test_httpsserver_funcarg __________________ request = > @pytest.fixture def httpsserver(request): """The returned ``httpsserver`` (note the additional S!) provides a threaded HTTP server instance similar to funcarg ``httpserver`` but with SSL encryption. """ from pytest_localserver import https > server = https.SecureContentServer() ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/plugin.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/https.py:103: in __init__ super(SecureContentServer, self).__init__(host, port, ssl_context=(key, cert)) ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/http.py:64: in __init__ super(ContentServer, self).__init__(host, port, self, ssl_context=ssl_context) ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/http.py:22: in __init__ self._server = make_server(host, port, self.app, **kwargs) /usr/lib/python3.9/site-packages/werkzeug/serving.py:795: in make_server return BaseWSGIServer( /usr/lib/python3.9/site-packages/werkzeug/serving.py:702: in __init__ ssl_context = load_ssl_context(*ssl_context) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cert_file = '/home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/server.pem' pkey_file = '/home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/server.pem' protocol = <_SSLMethod.PROTOCOL_TLS_SERVER: 17> def load_ssl_context( cert_file: str, pkey_file: t.Optional[str] = None, protocol: t.Optional[int] = None ) -> "ssl.SSLContext": """Loads SSL context from cert/private key files and optional protocol. Many parameters are directly taken from the API of :py:class:`ssl.SSLContext`. :param cert_file: Path of the certificate to use. :param pkey_file: Path of the private key to use. If not given, the key will be obtained from the certificate file. :param protocol: A ``PROTOCOL`` constant from the :mod:`ssl` module. Defaults to :data:`ssl.PROTOCOL_TLS_SERVER`. """ if protocol is None: protocol = ssl.PROTOCOL_TLS_SERVER ctx = ssl.SSLContext(protocol) > ctx.load_cert_chain(cert_file, pkey_file) E ssl.SSLError: [SSL: CA_MD_TOO_WEAK] ca md too weak (_ssl.c:4044) /usr/lib/python3.9/site-packages/werkzeug/serving.py:595: SSLError _________ ERROR at setup of test_server_does_not_serve_file_at_startup _________ request = > @pytest.fixture def httpsserver(request): """The returned ``httpsserver`` (note the additional S!) provides a threaded HTTP server instance similar to funcarg ``httpserver`` but with SSL encryption. """ from pytest_localserver import https > server = https.SecureContentServer() ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/plugin.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/https.py:103: in __init__ super(SecureContentServer, self).__init__(host, port, ssl_context=(key, cert)) ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/http.py:64: in __init__ super(ContentServer, self).__init__(host, port, self, ssl_context=ssl_context) ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/http.py:22: in __init__ self._server = make_server(host, port, self.app, **kwargs) /usr/lib/python3.9/site-packages/werkzeug/serving.py:795: in make_server return BaseWSGIServer( /usr/lib/python3.9/site-packages/werkzeug/serving.py:702: in __init__ ssl_context = load_ssl_context(*ssl_context) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cert_file = '/home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/server.pem' pkey_file = '/home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/server.pem' protocol = <_SSLMethod.PROTOCOL_TLS_SERVER: 17> def load_ssl_context( cert_file: str, pkey_file: t.Optional[str] = None, protocol: t.Optional[int] = None ) -> "ssl.SSLContext": """Loads SSL context from cert/private key files and optional protocol. Many parameters are directly taken from the API of :py:class:`ssl.SSLContext`. :param cert_file: Path of the certificate to use. :param pkey_file: Path of the private key to use. If not given, the key will be obtained from the certificate file. :param protocol: A ``PROTOCOL`` constant from the :mod:`ssl` module. Defaults to :data:`ssl.PROTOCOL_TLS_SERVER`. """ if protocol is None: protocol = ssl.PROTOCOL_TLS_SERVER ctx = ssl.SSLContext(protocol) > ctx.load_cert_chain(cert_file, pkey_file) E ssl.SSLError: [SSL: CA_MD_TOO_WEAK] ca md too weak (_ssl.c:4044) /usr/lib/python3.9/site-packages/werkzeug/serving.py:595: SSLError ________________ ERROR at setup of test_some_content_retrieval _________________ request = > @pytest.fixture def httpsserver(request): """The returned ``httpsserver`` (note the additional S!) provides a threaded HTTP server instance similar to funcarg ``httpserver`` but with SSL encryption. """ from pytest_localserver import https > server = https.SecureContentServer() ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/plugin.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/https.py:103: in __init__ super(SecureContentServer, self).__init__(host, port, ssl_context=(key, cert)) ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/http.py:64: in __init__ super(ContentServer, self).__init__(host, port, self, ssl_context=ssl_context) ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/http.py:22: in __init__ self._server = make_server(host, port, self.app, **kwargs) /usr/lib/python3.9/site-packages/werkzeug/serving.py:795: in make_server return BaseWSGIServer( /usr/lib/python3.9/site-packages/werkzeug/serving.py:702: in __init__ ssl_context = load_ssl_context(*ssl_context) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cert_file = '/home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/server.pem' pkey_file = '/home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/server.pem' protocol = <_SSLMethod.PROTOCOL_TLS_SERVER: 17> def load_ssl_context( cert_file: str, pkey_file: t.Optional[str] = None, protocol: t.Optional[int] = None ) -> "ssl.SSLContext": """Loads SSL context from cert/private key files and optional protocol. Many parameters are directly taken from the API of :py:class:`ssl.SSLContext`. :param cert_file: Path of the certificate to use. :param pkey_file: Path of the private key to use. If not given, the key will be obtained from the certificate file. :param protocol: A ``PROTOCOL`` constant from the :mod:`ssl` module. Defaults to :data:`ssl.PROTOCOL_TLS_SERVER`. """ if protocol is None: protocol = ssl.PROTOCOL_TLS_SERVER ctx = ssl.SSLContext(protocol) > ctx.load_cert_chain(cert_file, pkey_file) E ssl.SSLError: [SSL: CA_MD_TOO_WEAK] ca md too weak (_ssl.c:4044) /usr/lib/python3.9/site-packages/werkzeug/serving.py:595: SSLError ______________________ ERROR at setup of test_GET_request ______________________ request = > @pytest.fixture def httpsserver(request): """The returned ``httpsserver`` (note the additional S!) provides a threaded HTTP server instance similar to funcarg ``httpserver`` but with SSL encryption. """ from pytest_localserver import https > server = https.SecureContentServer() ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/plugin.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/https.py:103: in __init__ super(SecureContentServer, self).__init__(host, port, ssl_context=(key, cert)) ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/http.py:64: in __init__ super(ContentServer, self).__init__(host, port, self, ssl_context=ssl_context) ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/http.py:22: in __init__ self._server = make_server(host, port, self.app, **kwargs) /usr/lib/python3.9/site-packages/werkzeug/serving.py:795: in make_server return BaseWSGIServer( /usr/lib/python3.9/site-packages/werkzeug/serving.py:702: in __init__ ssl_context = load_ssl_context(*ssl_context) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cert_file = '/home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/server.pem' pkey_file = '/home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/server.pem' protocol = <_SSLMethod.PROTOCOL_TLS_SERVER: 17> def load_ssl_context( cert_file: str, pkey_file: t.Optional[str] = None, protocol: t.Optional[int] = None ) -> "ssl.SSLContext": """Loads SSL context from cert/private key files and optional protocol. Many parameters are directly taken from the API of :py:class:`ssl.SSLContext`. :param cert_file: Path of the certificate to use. :param pkey_file: Path of the private key to use. If not given, the key will be obtained from the certificate file. :param protocol: A ``PROTOCOL`` constant from the :mod:`ssl` module. Defaults to :data:`ssl.PROTOCOL_TLS_SERVER`. """ if protocol is None: protocol = ssl.PROTOCOL_TLS_SERVER ctx = ssl.SSLContext(protocol) > ctx.load_cert_chain(cert_file, pkey_file) E ssl.SSLError: [SSL: CA_MD_TOO_WEAK] ca md too weak (_ssl.c:4044) /usr/lib/python3.9/site-packages/werkzeug/serving.py:595: SSLError _____________________ ERROR at setup of test_HEAD_request ______________________ request = > @pytest.fixture def httpsserver(request): """The returned ``httpsserver`` (note the additional S!) provides a threaded HTTP server instance similar to funcarg ``httpserver`` but with SSL encryption. """ from pytest_localserver import https > server = https.SecureContentServer() ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/plugin.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/https.py:103: in __init__ super(SecureContentServer, self).__init__(host, port, ssl_context=(key, cert)) ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/http.py:64: in __init__ super(ContentServer, self).__init__(host, port, self, ssl_context=ssl_context) ../../BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/http.py:22: in __init__ self._server = make_server(host, port, self.app, **kwargs) /usr/lib/python3.9/site-packages/werkzeug/serving.py:795: in make_server return BaseWSGIServer( /usr/lib/python3.9/site-packages/werkzeug/serving.py:702: in __init__ ssl_context = load_ssl_context(*ssl_context) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cert_file = '/home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/server.pem' pkey_file = '/home/iurt/rpmbuild/BUILDROOT/python-pytest-localserver-0.5.0-1.mga9.aarch64/usr/lib/python3.9/site-packages/pytest_localserver/server.pem' protocol = <_SSLMethod.PROTOCOL_TLS_SERVER: 17> def load_ssl_context( cert_file: str, pkey_file: t.Optional[str] = None, protocol: t.Optional[int] = None ) -> "ssl.SSLContext": """Loads SSL context from cert/private key files and optional protocol. Many parameters are directly taken from the API of :py:class:`ssl.SSLContext`. :param cert_file: Path of the certificate to use. :param pkey_file: Path of the private key to use. If not given, the key will be obtained from the certificate file. :param protocol: A ``PROTOCOL`` constant from the :mod:`ssl` module. Defaults to :data:`ssl.PROTOCOL_TLS_SERVER`. """ if protocol is None: protocol = ssl.PROTOCOL_TLS_SERVER ctx = ssl.SSLContext(protocol) > ctx.load_cert_chain(cert_file, pkey_file) E ssl.SSLError: [SSL: CA_MD_TOO_WEAK] ca md too weak (_ssl.c:4044) /usr/lib/python3.9/site-packages/werkzeug/serving.py:595: SSLError =============================== warnings summary =============================== tests/test_http.py::test_some_content_retrieval /usr/lib/python3.9/site-packages/charset_normalizer/api.py:105: UserWarning: Trying to detect encoding from a tiny portion of (5) byte(s). warn('Trying to detect encoding from a tiny portion of ({}) byte(s).'.format(length)) -- Docs: https://docs.pytest.org/en/stable/warnings.html =========================== short test summary info ============================ ERROR tests/test_https.py::test_httpsserver_funcarg - ssl.SSLError: [SSL: CA_... ERROR tests/test_https.py::test_server_does_not_serve_file_at_startup - ssl.S... ERROR tests/test_https.py::test_some_content_retrieval - ssl.SSLError: [SSL: ... ERROR tests/test_https.py::test_GET_request - ssl.SSLError: [SSL: CA_MD_TOO_W... ERROR tests/test_https.py::test_HEAD_request - ssl.SSLError: [SSL: CA_MD_TOO_... =================== 11 passed, 1 warning, 5 errors in 4.05s ==================== error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.blbGPj (%check) RPM build errors: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend. Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.blbGPj (%check) I: [iurt_root_command] ERROR: chroot