[Python-checkins] cpython: Fix asyncio tests: define resolution

victor.stinner python-checkins at python.org
Sat Jan 25 15:36:40 CET 2014


http://hg.python.org/cpython/rev/5d009141512a
changeset:   88698:5d009141512a
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Sat Jan 25 15:31:06 2014 +0100
summary:
  Fix asyncio tests: define resolution

files:
  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
--- a/Lib/asyncio/test_utils.py
+++ b/Lib/asyncio/test_utils.py
@@ -144,6 +144,10 @@
     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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list