(self)
| 2675 | self.assertRaises(OSError, socket_helper.bind_port, s, host=-2) |
| 2676 | |
| 2677 | def testAutoBindSock(self): |
| 2678 | with socket.socket(socket.AF_QIPCRTR, socket.SOCK_DGRAM) as s: |
| 2679 | s.connect((123, 123)) |
| 2680 | self.assertNotEqual(s.getsockname()[1], 0) |
| 2681 | |
| 2682 | @unittest.skipIf(fcntl is None, "need fcntl") |
| 2683 | @unittest.skipUnless(HAVE_SOCKET_VSOCK, |
nothing calls this directly
no test coverage detected