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

Method clientSetUp

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

Source from the content-addressed store, hash-verified

524 ThreadableTest.__init__(self)
525
526 def clientSetUp(self):
527 self.cli = socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
528 try:
529 self.cli.bind((self.interface,))
530 except OSError:
531 # skipTest should not be called here, and will be called in the
532 # server instead
533 pass
534
535 def clientTearDown(self):
536 self.cli.close()

Callers

nothing calls this directly

Calls 2

socketMethod · 0.80
bindMethod · 0.45

Tested by

no test coverage detected