(self)
| 591 | self.addCleanup(self.conn.close) |
| 592 | |
| 593 | def clientSetUp(self): |
| 594 | time.sleep(0.1) |
| 595 | self.cli = socket.socket(socket.AF_VSOCK, socket.SOCK_STREAM) |
| 596 | self.addCleanup(self.cli.close) |
| 597 | cid = get_cid() |
| 598 | if cid in (socket.VMADDR_CID_HOST, socket.VMADDR_CID_ANY): |
| 599 | # gh-119461: Use the local communication address (loopback) |
| 600 | cid = socket.VMADDR_CID_LOCAL |
| 601 | self.cli.connect((cid, VSOCKPORT)) |
| 602 | |
| 603 | def testStream(self): |
| 604 | try: |
nothing calls this directly
no test coverage detected