Skip to content

Commit 4237939

Browse files
miss-islingtonvstinner
authored andcommitted
asyncio: Fix BaseSelectorEventLoopTests (GH-4595) (#4599)
Currently, two tests fail with PYTHONASYNCIODEBUG=1 (or using -X dev). (cherry picked from commit 92f9339)
1 parent f54e405 commit 4237939

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
@@ -188,6 +188,7 @@ def test_sock_recv_reconnection(self):
188188
sock = mock.Mock()
189189
sock.fileno.return_value = 10
190190
sock.recv.side_effect = BlockingIOError
191+
sock.gettimeout.return_value = 0.0
191192

192193
self.loop.add_reader = mock.Mock()
193194
self.loop.remove_reader = mock.Mock()
@@ -268,6 +269,7 @@ def test_sock_sendall_reconnection(self):
268269
sock = mock.Mock()
269270
sock.fileno.return_value = 10
270271
sock.send.side_effect = BlockingIOError
272+
sock.gettimeout.return_value = 0.0
271273

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

0 commit comments

Comments
 (0)