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

Method setUp

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

Source from the content-addressed store, hash-verified

335 bcm_cmd_msg_fmt += "x" * (struct.calcsize(bcm_cmd_msg_fmt) % 8)
336
337 def setUp(self):
338 self.s = socket.socket(socket.PF_CAN, socket.SOCK_RAW, socket.CAN_RAW)
339 self.addCleanup(self.s.close)
340 try:
341 self.s.bind((self.interface,))
342 except OSError:
343 self.skipTest('network interface `%s` does not exist' %
344 self.interface)
345
346
347class 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