MCPcopy
hub / github.com/zeromq/pyzmq / test_bind_random_context

Method test_bind_random_context

tests/test_socket.py:94–101  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92 b.recv(flags=zmq.DONTWAIT)
93
94 def test_bind_random_context(self):
95 with self.context.socket(zmq.PUSH) as push:
96 with push.bind("tcp://127.0.0.1:0"):
97 url = push.last_endpoint
98 with self.context.socket(zmq.PULL) as pull:
99 pull.connect(url)
100 push.send(b"msg")
101 self.recv(pull)
102
103 _repr_cls = "zmq.Socket"
104

Callers

nothing calls this directly

Calls 5

socketMethod · 0.45
bindMethod · 0.45
connectMethod · 0.45
sendMethod · 0.45
recvMethod · 0.45

Tested by

no test coverage detected