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 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 not is_gevent_monkey_patched():
         raise unittest.SkipTest(
             "Can't test gevent without monkey patching")
     GeventConnection.initialize_reactor()
 def setUp(self):
     if not is_gevent_monkey_patched():
         raise unittest.SkipTest("Can't test gevent without monkey patching")
     GeventConnection.initialize_reactor()
 def tearDownClass(cls):
     if is_gevent_monkey_patched():
         gevent_un_patch_all()
 def setUpClass(cls):
     if GeventConnection is not None:
         if not is_gevent_monkey_patched():
             gevent.monkey.patch_all()
Ejemplo n.º 7
0
 def tearDownClass(cls):
     if is_gevent_monkey_patched():
         gevent_un_patch_all()
Ejemplo n.º 8
0
 def setUpClass(cls):
     if GeventConnection is not None:
         if not is_gevent_monkey_patched():
             gevent.monkey.patch_all()