def setUpClass(cls): if is_eventlet_monkey_patched(): return # no dynamic patching if we have eventlet applied if GeventConnection is not None: if not is_gevent_monkey_patched(): cls.need_unpatch = True gevent.monkey.patch_all()
def setUp(self): if EventletConnection is None: raise unittest.SkipTest("Eventlet libraries not available") if not is_eventlet_monkey_patched(): raise unittest.SkipTest( "Can't test eventlet without monkey patching") EventletConnection.initialize_reactor()
def setUp(self): if EventletConnection is None: raise unittest.SkipTest("Eventlet libraries not available") if not is_eventlet_monkey_patched(): raise unittest.SkipTest("Can't test eventlet without monkey patching") EventletConnection.initialize_reactor()