def test_rebind_fails(self): if not compat.MQ.safe_to_rebind(): raise compat.unittest.SkipTest("Test is not safe to run.") s1 = utils.create_rep_socket_bound_to_random() s2 = compat.MQ.socket(compat.MQ.REP) self.assertRaises(compat.MQ.errtype, s2.bind, s1.endpoint)
def bind_and_wait(): s = utils.create_rep_socket_bound_to_random() print(s.endpoint) while True: print("")
def test_all(self): conninfo = utils.create_rep_socket_bound_to_random() utils.assert_open(conninfo, False) conninfo.socket.close()