def test_close(self):
     cl = self.new_client()
     utils.assert_open(cl.serverproc, False)
     cl.close_all()
     with self.assertRaises(Closed):
         cl.exec_('1')
     if compat.MQ.closes_reliably():
         utils.assert_open(cl.serverproc)
Esempio n. 2
0
 def test_all(self):
     conninfo = utils.create_rep_socket_bound_to_random()
     utils.assert_open(conninfo, False)
     conninfo.socket.close()