We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39f3a02 commit 51f6941Copy full SHA for 51f6941
tests/test_sockets.py
@@ -82,6 +82,23 @@ async def run():
82
83
self.loop.run_until_complete(run())
84
85
+ def test_socket_blocking_error(self):
86
+ self.loop.set_debug(True)
87
+ sock = socket.socket()
88
+
89
+ with sock:
90
+ with self.assertRaisesRegex(ValueError, 'must be non-blocking'):
91
+ self.loop.sock_recv(sock, 0)
92
93
94
+ self.loop.sock_sendall(sock, b'')
95
96
97
+ self.loop.sock_accept(sock)
98
99
100
+ self.loop.sock_connect(sock, (b'', 0))
101
102
103
class TestUVSockets(_TestSockets, tb.UVTestCase):
104
pass
0 commit comments