Example #1
0
 def setUp(self):
     BaseZMQTestCase.setUp(self)
     self.client = self.connect_client()
     # start every test with clean engine namespaces:
     self.client.clear(block=True)
     self.base_engine_count = len(self.client.ids)
     self.engines = []
Example #2
0
 def setUp(self):
     BaseZMQTestCase.setUp(self)
     self.client = self.connect_client()
     # start every test with clean engine namespaces:
     self.client.clear(block=True)
     self.base_engine_count=len(self.client.ids)
     self.engines=[]
Example #3
0
 def setUp(self):
     try:
         import tornado
     except ImportError:
         raise SkipTest("zmq.web requires tornado")
     
     BaseZMQTestCase.setUp(self)
Example #4
0
    def setUp(self):
        BaseZMQTestCase.setUp(self)
        if hasattr(signal, 'SIGALRM'):
            # use sigalarm for test timeout
            def _sigalarm(sig, frame):
                raise TimeoutError(
                    f"test did not finish in {self.test_timeout} seconds")

            signal.signal(signal.SIGALRM, _sigalarm)
            signal.alarm(self.test_timeout)

        add_engines(self.engine_count, total=True)

        self.client = self.connect_client()
        # start every test with clean engine namespaces:
        self.client.clear(block=True)
        self.base_engine_count = len(self.client.ids)
        self.engines = []
Example #5
0
 def setUp(self):
     BaseZMQTestCase.setUp(self)
     self.session = ss.Session()
Example #6
0
 def setUp(self):
     BaseZMQTestCase.setUp(self)
     self.session = ss.StreamSession()
Example #7
0
 def setUp(self):
     BaseZMQTestCase.setUp(self)
     self.client = self.connect_client()
     self.base_engine_count = len(self.client.ids)
     self.engines = []
Example #8
0
 def setUp(self):
     BaseZMQTestCase.setUp(self)
     self.client = self.connect_client()
     self.base_engine_count=len(self.client.ids)
     self.engines=[]