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

Method setUp

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

Source from the content-addressed store, hash-verified

337 bcm_cmd_msg_fmt += "x" * (struct.calcsize(bcm_cmd_msg_fmt) % 8)
338
339 def setUp(self):
340 self.s = socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
341 self.addCleanup(self.s.close)
342 try:
343 self.s.bind((self.interface,))
344 except OSError:
345 self.skipTest('network interface `%s` does not exist' %
346 self.interface)
347
348
349class SocketRDSTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 4

socketMethod · 0.80
addCleanupMethod · 0.80
skipTestMethod · 0.80
bindMethod · 0.45

Tested by

no test coverage detected