[Python-checkins] cpython: Issue #20505: Fix TestLoop, set the clock resolution

victor.stinner python-checkins at python.org
Tue Feb 11 09:04:34 CET 2014


http://hg.python.org/cpython/rev/75881b85695f
changeset:   89131:75881b85695f
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Tue Feb 11 09:03:47 2014 +0100
summary:
  Issue #20505: Fix TestLoop, set the clock resolution

files:
  Lib/asyncio/test_utils.py |  1 +
  1 files changed, 1 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
@@ -191,6 +191,7 @@
         self._gen = gen()
         next(self._gen)
         self._time = 0
+        self._clock_resolution = 1e-9
         self._timers = []
         self._selector = TestSelector()
 

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


More information about the Python-checkins mailing list