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