summaryrefslogtreecommitdiffstatshomepage
path: root/tests/net_hosted/accept_nonblock.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/net_hosted/accept_nonblock.py')
-rw-r--r--tests/net_hosted/accept_nonblock.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/net_hosted/accept_nonblock.py b/tests/net_hosted/accept_nonblock.py
index 941965e178..d17e287498 100644
--- a/tests/net_hosted/accept_nonblock.py
+++ b/tests/net_hosted/accept_nonblock.py
@@ -12,5 +12,5 @@ s.listen(1)
try:
s.accept()
except OSError as er:
- print(er.args[0] == 11) # 11 is EAGAIN
+ print(er.errno == 11) # 11 is EAGAIN
s.close()