asyncio: Fix BaseSelectorEventLoopTests (#4595)

Currently, two tests fail with PYTHONASYNCIODEBUG=1 (or using -X
dev).
This commit is contained in:
Victor Stinner 2017-11-28 00:35:55 +01:00 committed by GitHub
parent c16bacec3c
commit 92f9339a58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -187,6 +187,7 @@ class BaseSelectorEventLoopTests(test_utils.TestCase):
sock = mock.Mock()
sock.fileno.return_value = 10
sock.recv.side_effect = BlockingIOError
sock.gettimeout.return_value = 0.0
self.loop.add_reader = mock.Mock()
self.loop.remove_reader = mock.Mock()
@ -267,6 +268,7 @@ class BaseSelectorEventLoopTests(test_utils.TestCase):
sock = mock.Mock()
sock.fileno.return_value = 10
sock.send.side_effect = BlockingIOError
sock.gettimeout.return_value = 0.0
self.loop.add_writer = mock.Mock()
self.loop.remove_writer = mock.Mock()