summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-01-25 23:02:31 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-01-25 23:02:31 (GMT)
commit669eeaf9339a4096db0e5566b4c986300cb60f00 (patch)
tree4b286f6acb2233d518b9e6a69e434c3f0e2c3a7e /Lib/test/test_asyncio/test_events.py
parent3c2f175ec4355a0e1f3e4d7c21ff3986e8d93dc8 (diff)
downloadcpython-669eeaf9339a4096db0e5566b4c986300cb60f00.zip
cpython-669eeaf9339a4096db0e5566b4c986300cb60f00.tar.gz
cpython-669eeaf9339a4096db0e5566b4c986300cb60f00.tar.bz2
Merge latest Tulip into asyncio
- Make the new granularity attribute private - Simplify BaseEventLoop._run_once(): avoid math.ceil(), use simple arithmetic instead
Diffstat (limited to 'Lib/test/test_asyncio/test_events.py')
-rw-r--r--Lib/test/test_asyncio/test_events.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
index bded1a3..fe5b224 100644
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -1170,9 +1170,9 @@ class EventLoopTestsMixin:
def wait():
loop = self.loop
calls.append(loop._run_once_counter)
- yield from asyncio.sleep(loop.granularity * 10, loop=loop)
+ yield from asyncio.sleep(loop._granularity * 10, loop=loop)
calls.append(loop._run_once_counter)
- yield from asyncio.sleep(loop.granularity / 10, loop=loop)
+ yield from asyncio.sleep(loop._granularity / 10, loop=loop)
calls.append(loop._run_once_counter)
self.loop.run_until_complete(wait())