tests/multi_net: Skip SSL test if relevant modules aren't available.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2022-05-16 09:27:31 +10:00
parent ab0a8f3086
commit acfc3bbdf8
1 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,11 @@
# Simple test creating an SSL connection and transferring some data
# This test won't run under CPython because it requires key/cert
import ubinascii as binascii, usocket as socket, ussl as ssl
try:
import ubinascii as binascii, usocket as socket, ussl as ssl
except ImportError:
print("SKIP")
raise SystemExit
PORT = 8000