Esempio n. 1
0
 def tearDown(self):
     # self.client.clear(block=True)
     # close fds:
     for e in filter(lambda e: e.poll() is not None, launchers):
         launchers.remove(e)
     
     # allow flushing of incoming messages to prevent crash on socket close
     self.client.wait(timeout=2)
     # time.sleep(2)
     self.client.close()
     BaseZMQTestCase.tearDown(self)
Esempio n. 2
0
    def tearDown(self):
        # self.client.clear(block=True)
        # close fds:
        for e in filter(lambda e: e.poll() is not None, launchers):
            launchers.remove(e)

        # allow flushing of incoming messages to prevent crash on socket close
        self.client.wait(timeout=2)
        # time.sleep(2)
        self.client.close()
        BaseZMQTestCase.tearDown(self)
Esempio n. 3
0
    def tearDown(self):
        self.client[:].use_pickle()

        # self.client.clear(block=True)
        # close fds:
        for e in filter(lambda e: e.poll() is not None, launchers):
            launchers.remove(e)

        # allow flushing of incoming messages to prevent crash on socket close
        self.client.wait(timeout=2)
        self.client.close()
        BaseZMQTestCase.tearDown(self)
        if hasattr(signal, 'SIGALRM'):
            signal.alarm(0)
            signal.signal(signal.SIGALRM, signal.SIG_DFL)