8000 tests: Rename imports. · micropython/micropython@d78335a · GitHub
[go: up one dir, main page]

Skip to content

Commit d78335a

Browse files
committed
tests: Rename imports.
Signed-off-by: Carlos Gil <carlosgilglez@gmail.com>
1 parent 16cd048 commit d78335a

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

tests/multi_net/ssl_context_rsa.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# This test won't run under CPython because CPython doesn't have key/cert
33

44
try:
5-
import ubinascii as binascii, usocket as socket
5+
import binascii
6+
import socket
67
import ssl
78
except ImportError:
89
print("SKIP")

tests/net_inet/test_ssl_context_client.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
import socket
22
import ssl
3-
4-
try:
5-
import ubinascii as binascii
6-
except:
7-
import binascii
8-
try:
9-
import usocket as socket
10-
except:
11-
import socket
3+
import binascii
124

135
# This certificate was obtained from micropython.org using openssl:
146
# $ openssl s_client -showcerts -connect micropython.org:443 </dev/null 2>/dev/null

0 commit comments

Comments
 (0)
0