From: Victor Stinner Date: Sat, 25 Jan 2014 14:31:06 +0000 (+0100) Subject: Fix asyncio tests: define resolution X-Git-Tag: v3.4.0b3~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=75a5ec88ff41ad7d3909e54ce517754298b31404;p=thirdparty%2FPython%2Fcpython.git Fix asyncio tests: define resolution --- diff --git a/Lib/asyncio/test_utils.py b/Lib/asyncio/test_utils.py index ccb445418d53..42b9cd75ae87 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