circuitpython/tests/extmod/ssl_cadata.py
Damien George a7e2a6d9f2 tests/extmod/ssl_cadata.py: Skip test on axtls.
The axtls bindings don't support this.

Signed-off-by: Damien George <damien@micropython.org>
2023-09-29 12:01:50 +10:00

19 lines
374 B
Python

# Test ssl.wrap_socket() with cadata passed in.
try:
import io
import ssl
except ImportError:
print("SKIP")
raise SystemExit
# Invalid cadata.
try:
ssl.wrap_socket(io.BytesIO(), cadata=b"!")
except TypeError:
# "cadata" keyword argument is not supported by axtls.
print("SKIP")
raise SystemExit
except ValueError as er:
print(repr(er))