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 setUpClass(cls): # This is run even though the class is skipped, so we need # to make sure no monkey patching is happening if not MONKEY_PATCH_LOOP: return monkey_patch() cls.connection_class = EventletConnection EventletConnection.initialize_reactor()
def setUpClass(cls): # This is run even though the class is skipped, so we need # to make sure no monkey patching is happening if not MONKEY_PATCH_LOOP: return monkey_patch() cls.connection_class = EventletConnection EventletConnection.initialize_reactor()
def setUpClass(cls): # This is run even though the class is skipped, so we need # to make sure no monkey patching is happening if not MONKEY_PATCH_LOOP: return # This is being added temporarily due to a bug in eventlet: # https://github.com/eventlet/eventlet/issues/401 import eventlet; eventlet.sleep() monkey_patch() cls.connection_class = EventletConnection EventletConnection.initialize_reactor()
def setUpClass(cls): # This is run even though the class is skipped, so we need # to make sure no monkey patching is happening if skip_condition: return # This is being added temporarily due to a bug in eventlet: # https://github.com/eventlet/eventlet/issues/401 import eventlet eventlet.sleep() monkey_patch() # cls.connection_class = EventletConnection EventletConnection.initialize_reactor() assert EventletConnection._timers is not None
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()