community/py3-truststore: skip some tests on loongarch64

Cert verification for example.com failed.

Example error:

```
___________________ test_sslcontext_api_success[example.com] ___________________

self = <urllib3.connectionpool.HTTPSConnectionPool object at 0x7fffec713c50>
conn = <HTTPSConnection(host='example.com', port=443) at 0x7fffebdbd090>
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 = <ssl.SSLSocket [closed] fd=-1, family=2, type=1, proto=6>, 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
```
This commit is contained in:
mio 2026-03-30 07:40:59 +00:00
parent f296b48877
commit d2856eec96

View File

@ -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' \