tests: Replace umodule with module everywhere.
This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
14
tests/extmod/socket_tcp_basic.py
Normal file
14
tests/extmod/socket_tcp_basic.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# Test basic, stand-alone TCP socket functionality
|
||||
|
||||
try:
|
||||
import socket, errno
|
||||
except ImportError:
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
# recv() on a fresh socket should raise ENOTCONN
|
||||
s = socket.socket()
|
||||
try:
|
||||
s.recv(1)
|
||||
except OSError as er:
|
||||
print("ENOTCONN:", er.errno == errno.ENOTCONN)
|
||||
Reference in New Issue
Block a user