コード例 #1
0
 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)
コード例 #2
0
def bind_and_wait():
    s = utils.create_rep_socket_bound_to_random()
    print(s.endpoint)
    while True:
        print("")
コード例 #3
0
 def test_all(self):
     conninfo = utils.create_rep_socket_bound_to_random()
     utils.assert_open(conninfo, False)
     conninfo.socket.close()