From a3867590f917176c5276042a9edc2f400b665d4f Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 31 Jul 2025 12:24:51 +1000 Subject: tests/net_inet: Skip tests on axTLS when necessary. These tests cannot run with axTLS, eg on esp8266. Signed-off-by: Damien George --- tests/net_inet/ssl_errors.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/net_inet/ssl_errors.py') diff --git a/tests/net_inet/ssl_errors.py b/tests/net_inet/ssl_errors.py index bc4e5910b..c23f736b0 100644 --- a/tests/net_inet/ssl_errors.py +++ b/tests/net_inet/ssl_errors.py @@ -3,6 +3,10 @@ import sys, errno, select, socket, ssl +if not hasattr(ssl, "CERT_REQUIRED"): + print("SKIP") + raise SystemExit + def test(addr, hostname, block=True): print("---", hostname) -- cgit v1.2.3