diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2017-11-28 01:32:53 -0800 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-11-28 10:32:53 +0100 |
commit | 4237939805099eb6eb875e4531820fa965319589 (patch) | |
tree | 342c867c901939fc9eefdfdb3ebf43f082d95167 /Lib/test | |
parent | asyncio: Remove unused Future._tb_logger attribute (GH-4596) (#4598) (diff) | |
download | cpython-4237939805099eb6eb875e4531820fa965319589.tar.gz cpython-4237939805099eb6eb875e4531820fa965319589.tar.bz2 cpython-4237939805099eb6eb875e4531820fa965319589.zip |
asyncio: Fix BaseSelectorEventLoopTests (GH-4595) (#4599)
Currently, two tests fail with PYTHONASYNCIODEBUG=1 (or using -X
dev).
(cherry picked from commit 92f9339a58a613a56683510499509d1b702921a8)
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_asyncio/test_selector_events.py | 2 |
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 a3d118e1881..3477573ec3e 100644 --- a/Lib/test/test_asyncio/test_selector_events.py +++ b/Lib/test/test_asyncio/test_selector_events.py @@ -188,6 +188,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() @@ -268,6 +269,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() |