From 9060f9089e88ab0dfffa85b1c6c95051cc235561 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 21 Nov 2014 23:00:10 +0100 Subject: debug --- aiogreen.py | 1 + tests/test_timer.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/aiogreen.py b/aiogreen.py index 6ff2b01..d3be7e7 100644 --- a/aiogreen.py +++ b/aiogreen.py @@ -228,6 +228,7 @@ class EventLoop(asyncio.SelectorEventLoop): # Detect blocking eventlet functions. The feature is implemented with # signal.alarm() which is is not available on Windows. self._hub.debug_blocking = debug and (sys.platform != 'win32') + self._hub.debug_blocking_resolution = 0.1 def time(self): return self._hub.clock() diff --git a/tests/test_timer.py b/tests/test_timer.py index fbb492b..4d8d501 100644 --- a/tests/test_timer.py +++ b/tests/test_timer.py @@ -31,9 +31,9 @@ class TimerTests(tests.TestCase): result.append("World") loop.stop() - self.loop.call_later(0.050, hello) - self.loop.call_later(0.100, self.loop.stop) - self.loop.call_later(0.150, world, self.loop) + self.loop.call_later(0.5, hello) + self.loop.call_later(1.0, self.loop.stop) + self.loop.call_later(1.5, world, self.loop) self.loop.run_forever() eventlet.sleep(0.200) -- cgit v1.2.1