summaryrefslogtreecommitdiff
path: root/Lib/asyncio/test_utils.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-01-25 15:31:06 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-01-25 15:31:06 +0100
commit9945ea3e3fd779ff428f21be49f1287ac816bd97 (patch)
tree91d3b910ed6f5fc755db96dd27ae9522eff61df7 /Lib/asyncio/test_utils.py
parent3a0ab5724c67b889d0a88bfc0523dbfcf980f5f0 (diff)
downloadcpython-9945ea3e3fd779ff428f21be49f1287ac816bd97.tar.gz
Fix asyncio tests: define resolution
Diffstat (limited to 'Lib/asyncio/test_utils.py')
-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 ccb445418d..42b9cd75ae 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