circuitpython/tests/extmod/ssl_cadata.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
258 B
Python
Raw Normal View History

# 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 ValueError as er:
print(repr(er))