summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-11-28 00:35:55 +0100
committerGitHub <noreply@github.com>2017-11-28 00:35:55 +0100
commit92f9339a58a613a56683510499509d1b702921a8 (patch)
treeb8227e0c24567763ada297eb8c8e04fca8a914da /Lib/test
parentc16bacec3c2f08a74e4dc282f7d84f17ec70d0d5 (diff)
downloadcpython-git-92f9339a58a613a56683510499509d1b702921a8.tar.gz
asyncio: Fix BaseSelectorEventLoopTests (#4595)
Currently, two tests fail with PYTHONASYNCIODEBUG=1 (or using -X dev).
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_asyncio/test_selector_events.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_selector_events.py b/Lib/test/test_asyncio/test_selector_events.py
index e67afcc720..2adb43ae72 100644
--- a/Lib/test/test_asyncio/test_selector_events.py
+++ b/Lib/test/test_asyncio/test_selector_events.py
@@ -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()