You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
374 B

# 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))