Skip to content

Commit 92f9339

Browse files
authored
asyncio: Fix BaseSelectorEventLoopTests (#4595)
Currently, two tests fail with PYTHONASYNCIODEBUG=1 (or using -X dev).
1 parent c16bace commit 92f9339

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_asyncio/test_selector_events.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ def test_sock_recv_reconnection(self):
187187
sock = mock.Mock()
188188
sock.fileno.return_value = 10
189189
sock.recv.side_effect = BlockingIOError
190+
sock.gettimeout.return_value = 0.0
190191

191192
self.loop.add_reader = mock.Mock()
192193
self.loop.remove_reader = mock.Mock()
@@ -267,6 +268,7 @@ def test_sock_sendall_reconnection(self):
267268
sock = mock.Mock()
268269
sock.fileno.return_value = 10
269270
sock.send.side_effect = BlockingIOError
271+
sock.gettimeout.return_value = 0.0
270272

271273
self.loop.add_writer = mock.Mock()
272274
self.loop.remove_writer = mock.Mock()

0 commit comments

Comments
 (0)