summaryrefslogtreecommitdiff
path: root/tests/net_inet/test_sslcontext_client.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-07-31 12:24:51 +1000
committerDamien George <damien@micropython.org>2025-10-20 12:06:39 +1100
commita3867590f917176c5276042a9edc2f400b665d4f (patch)
treefafb0dd8ac5a3a3d5bf03d0b650ef256ca6f03b5 /tests/net_inet/test_sslcontext_client.py
parent6fef4eb55ce0ea02ecedc7788ff5a7a042e352d5 (diff)
tests/net_inet: Skip tests on axTLS when necessary.
These tests cannot run with axTLS, eg on esp8266. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/net_inet/test_sslcontext_client.py')
-rw-r--r--tests/net_inet/test_sslcontext_client.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/net_inet/test_sslcontext_client.py b/tests/net_inet/test_sslcontext_client.py
index 77f68da49..bc06dc3c5 100644
--- a/tests/net_inet/test_sslcontext_client.py
+++ b/tests/net_inet/test_sslcontext_client.py
@@ -2,6 +2,10 @@ import os
import socket
import ssl
+if not hasattr(ssl, "CERT_REQUIRED"):
+ print("SKIP")
+ raise SystemExit
+
# This certificate was obtained from micropython.org using openssl:
# $ openssl s_client -showcerts -connect micropython.org:443 </dev/null 2>/dev/null
# The certificate is from Let's Encrypt: