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:
parent
ab0a8f3086
commit
acfc3bbdf8
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user