]> granicus.if.org Git - python/commitdiff
Issue #20505: Fix TestLoop, set the clock resolution
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 11 Feb 2014 08:03:47 +0000 (09:03 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 11 Feb 2014 08:03:47 +0000 (09:03 +0100)
Lib/asyncio/test_utils.py

index 71d69cfacc82a0cdf17ed19c700431803b222167..7c8e1dcbd6cfdd1c64e74a35bbe5269dd5f3b466 100644 (file)
@@ -191,6 +191,7 @@ class TestLoop(base_events.BaseEventLoop):
         self._gen = gen()
         next(self._gen)
         self._time = 0
+        self._clock_resolution = 1e-9
         self._timers = []
         self._selector = TestSelector()