diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-01-25 14:31:06 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-01-25 14:31:06 (GMT) |
commit | 75a5ec88ff41ad7d3909e54ce517754298b31404 (patch) | |
tree | b53513fb71759a5afccc26dad57c989745b24116 /Lib | |
parent | 6b0fa70547dfd4c738a11576b0f19d426a5d4c82 (diff) | |
download | cpython-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.py | 4 |
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 |