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)
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)
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()