MCPcopy Index your code
hub / github.com/RustPython/RustPython / clientSetUp

Method clientSetUp

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

Source from the content-addressed store, hash-verified

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