summaryrefslogtreecommitdiff
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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/net_hosted/accept_nonblock.py b/tests/net_hosted/accept_nonblock.py
index 56f3288e2..941965e17 100644
--- a/tests/net_hosted/accept_nonblock.py
+++ b/tests/net_hosted/accept_nonblock.py
@@ -6,11 +6,11 @@ except:
import socket
s = socket.socket()
-s.bind(socket.getaddrinfo('127.0.0.1', 8123)[0][-1])
+s.bind(socket.getaddrinfo("127.0.0.1", 8123)[0][-1])
s.setblocking(False)
s.listen(1)
try:
s.accept()
except OSError as er:
- print(er.args[0] == 11) # 11 is EAGAIN
+ print(er.args[0] == 11) # 11 is EAGAIN
s.close()