summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_base_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-07 22:34:58 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-02-07 22:34:58 (GMT)
commit85310a50a998af645acf0657737076eb064452bb (patch)
tree6b263f4a66877a3f9d824ba2744f87e8dfbbb141 /Lib/test/test_asyncio/test_base_events.py
parentc489e83432ef29c9c2a638c4ca290b308e5921e4 (diff)
downloadcpython-85310a50a998af645acf0657737076eb064452bb.zip
cpython-85310a50a998af645acf0657737076eb064452bb.tar.gz
cpython-85310a50a998af645acf0657737076eb064452bb.tar.bz2
Issue #20505: Remove resolution and _granularity from selectors and asyncio
* Remove selectors.BaseSelector.resolution attribute * Remove asyncio.BaseEventLoop._granularity attribute
Diffstat (limited to 'Lib/test/test_asyncio/test_base_events.py')
-rw-r--r--Lib/test/test_asyncio/test_base_events.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py
index 0d90d3f..5b05684 100644
--- a/Lib/test/test_asyncio/test_base_events.py
+++ b/Lib/test/test_asyncio/test_base_events.py
@@ -124,7 +124,8 @@ class BaseEventLoopTests(unittest.TestCase):
self.loop.run_forever()
dt = self.loop.time() - t0
- self.assertGreaterEqual(dt, delay - self.loop._granularity, dt)
+ # 50 ms: maximum granularity of the event loop
+ self.assertGreaterEqual(dt, delay - 0.050, dt)
# tolerate a difference of +800 ms because some Python buildbots
# are really slow
self.assertLessEqual(dt, 0.9, dt)