예제 #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)
예제 #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)
예제 #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)
예제 #4
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.spin()
     self.client.close()
     BaseZMQTestCase.tearDown(self)
     # this will be redundant when pyzmq merges PR #88
     # self.context.term()
     # print tempfile.TemporaryFile().fileno(),
     # sys.stdout.flush()