示例#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()