Commit 86f6af7d authored by Denis Bilenko's avatar Denis Bilenko

greentest: do not call sleep(0) in setUp

parent dd784969
......@@ -126,7 +126,9 @@ class TestCase(BaseTestCase):
return BaseTestCase.run(self, *args, **kwargs)
def setUp(self):
gevent.sleep(0) # switch at least once to setup signal handlers
hub = gevent.hub._get_hub()
if hub is not None:
hub.loop.update_now()
if hasattr(self._hub, 'switch_count'):
self._switch_count = self._hub.switch_count
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment