summaryrefslogtreecommitdiff
path: root/tests/extmod/usocket_udp_nonblock.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/usocket_udp_nonblock.py')
-rw-r--r--tests/extmod/usocket_udp_nonblock.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/extmod/usocket_udp_nonblock.py b/tests/extmod/usocket_udp_nonblock.py
index 7dc0e562a..bc560de14 100644
--- a/tests/extmod/usocket_udp_nonblock.py
+++ b/tests/extmod/usocket_udp_nonblock.py
@@ -17,4 +17,4 @@ s.settimeout(0)
try:
s.recv(1)
except OSError as er:
- print("EAGAIN:", er.args[0] == errno.EAGAIN)
+ print("EAGAIN:", er.errno == errno.EAGAIN)