summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_base_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-07-11 09:58:33 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-07-11 09:58:33 (GMT)
commit770e48d0174726e339074cfffa68fce23768aab5 (patch)
tree807e997af92d392c29b5e060588460d42d3aec00 /Lib/test/test_asyncio/test_base_events.py
parent3740d589f7e1737da480b2730161cb835b8dd55c (diff)
downloadcpython-770e48d0174726e339074cfffa68fce23768aab5.zip
cpython-770e48d0174726e339074cfffa68fce23768aab5.tar.gz
cpython-770e48d0174726e339074cfffa68fce23768aab5.tar.bz2
asyncio: sync with Tulip
* Tulip issue #182: Improve logs of BaseEventLoop._run_once() - Don't log non-blocking poll - Only log polling with a timeout if it gets events or if it timed out after more than 1 second. * Fix some pyflakes warnings: remove unused imports
Diffstat (limited to 'Lib/test/test_asyncio/test_base_events.py')
-rw-r--r--Lib/test/test_asyncio/test_base_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py
index f6da7c3..27610f0 100644
--- a/Lib/test/test_asyncio/test_base_events.py
+++ b/Lib/test/test_asyncio/test_base_events.py
@@ -12,7 +12,6 @@ from test.support import IPV6_ENABLED
import asyncio
from asyncio import base_events
-from asyncio import events
from asyncio import constants
from asyncio import test_utils
@@ -26,6 +25,7 @@ class BaseEventLoopTests(test_utils.TestCase):
def setUp(self):
self.loop = base_events.BaseEventLoop()
self.loop._selector = mock.Mock()
+ self.loop._selector.select.return_value = ()
self.set_event_loop(self.loop)
def test_not_implemented(self):