MCPcopy Index your code
hub / github.com/python/cpython / clientSetUp

Method clientSetUp

Lib/test/test_socket.py:546–555  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

544 ThreadableTest.__init__(self)
545
546 def clientSetUp(self):
547 self.cli = socket.socket(socket.PF_RDS, socket.SOCK_SEQPACKET, 0)
548 try:
549 # RDS sockets must be bound explicitly to send or receive data
550 self.cli.bind((HOST, 0))
551 self.cli_addr = self.cli.getsockname()
552 except OSError:
553 # skipTest should not be called here, and will be called in the
554 # server instead
555 pass
556
557 def clientTearDown(self):
558 self.cli.close()

Callers

nothing calls this directly

Calls 3

socketMethod · 0.80
bindMethod · 0.45
getsocknameMethod · 0.45

Tested by

no test coverage detected