From d2856eec96f432ec5b69acdd58e8945824eb99ca Mon Sep 17 00:00:00 2001 From: mio Date: Mon, 30 Mar 2026 07:40:59 +0000 Subject: [PATCH] community/py3-truststore: skip some tests on loongarch64 Cert verification for example.com failed. Example error: ``` ___________________ test_sslcontext_api_success[example.com] ___________________ self = conn = method = 'GET', url = '/', body = None, headers = {} retries = Retry(total=0, connect=None, read=None, redirect=None, status=None) timeout = Timeout(connect=<_TYPE_DEFAULT.token: -1>, read=<_TYPE_DEFAULT.token: -1>, total=None) chunked = False, response_conn = None, preload_content = True decode_content = True, enforce_content_length = True [...] .testenv/lib/python3.14/site-packages/truststore/_api.py:121: in wrap_socket ssl_sock = self._ctx.wrap_socket( /usr/lib/python3.14/ssl.py:455: in wrap_socket return self.sslsocket_class._create( /usr/lib/python3.14/ssl.py:1076: in _create self.do_handshake() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , block = False @_sslcopydoc def do_handshake(self, block=False): self._check_connected() timeout = self.gettimeout() try: if timeout == 0.0 and block: self.settimeout(None) > self._sslobj.do_handshake() E ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1081) /usr/lib/python3.14/ssl.py:1372: SSLCertVerificationError ``` --- community/py3-truststore/APKBUILD | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/community/py3-truststore/APKBUILD b/community/py3-truststore/APKBUILD index d358e2438a0..ed7ecd626ee 100644 --- a/community/py3-truststore/APKBUILD +++ b/community/py3-truststore/APKBUILD @@ -36,10 +36,13 @@ check() { case "$CARCH" in loongarch64) .testenv/bin/python3 -m pytest \ + --deselect tests/test_api.py::test_requests_sslcontext_api_success[example.com] \ --deselect tests/test_api.py::test_success \ --deselect tests/test_api.py::test_success_after_loading_additional_anchors \ + --deselect tests/test_api.py::test_sslcontext_api_success[example.com] \ --deselect tests/test_api.py::test_sslcontext_api_success_async \ - --deselect tests/test_inject.py::test_success_with_inject \ + --deselect tests/test_api.py::test_trustme_cert_still_uses_system_certs \ + --deselect tests/test_inject.py::test_success_with_inject ;; *) .testenv/bin/python3 -m pytest -v -k 'not example.com' \