summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-01-25 14:31:06 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-01-25 14:31:06 (GMT)
commit75a5ec88ff41ad7d3909e54ce517754298b31404 (patch)
treeb53513fb71759a5afccc26dad57c989745b24116 /Lib
parent6b0fa70547dfd4c738a11576b0f19d426a5d4c82 (diff)
downloadcpython-75a5ec88ff41ad7d3909e54ce517754298b31404.zip
cpython-75a5ec88ff41ad7d3909e54ce517754298b31404.tar.gz
cpython-75a5ec88ff41ad7d3909e54ce517754298b31404.tar.bz2
Fix asyncio tests: define resolution
Diffstat (limited to 'Lib')
-rw-r--r--Lib/asyncio/test_utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/asyncio/test_utils.py b/Lib/asyncio/test_utils.py
index ccb4454..42b9cd7 100644
--- a/Lib/asyncio/test_utils.py
+++ b/Lib/asyncio/test_utils.py
@@ -144,6 +144,10 @@ class TestSelector(selectors.BaseSelector):
def __init__(self):
self.keys = {}
+ @property
+ def resolution(self):
+ return 1e-3
+
def register(self, fileobj, events, data=None):
key = selectors.SelectorKey(fileobj, 0, events, data)
self.keys[fileobj] = key