예제 #1
0
 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
     gevent.monkey.patch_all()
     cls.connection_class = GeventConnection
     GeventConnection.initialize_reactor()
예제 #2
0
 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
     gevent.monkey.patch_all()
     cls.connection_class = GeventConnection
     GeventConnection.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
     # There is no unpatching because there is not a clear way
     # of doing it reliably
     gevent.monkey.patch_all()
     GeventConnection.initialize_reactor()
예제 #4
0
 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
     # There is no unpatching because there is not a clear way
     # of doing it reliably
     gevent.monkey.patch_all()
     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 setUp(self):
     if not is_gevent_monkey_patched():
         raise unittest.SkipTest("Can't test gevent without monkey patching")
     GeventConnection.initialize_reactor()