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

Method bind

Lib/test/test_socket.py:6203–6213  ·  view source on GitHub ↗
(self, sock, path)

Source from the content-addressed store, hash-verified

6201 path, sys.getfilesystemencoding()))
6202
6203 def bind(self, sock, path):
6204 # Bind the socket
6205 try:
6206 socket_helper.bind_unix_socket(sock, path)
6207 except OSError as e:
6208 if str(e) == "AF_UNIX path too long":
6209 self.skipTest(
6210 "Pathname {0!a} is too long to serve as an AF_UNIX path"
6211 .format(path))
6212 else:
6213 raise
6214
6215 def testUnbound(self):
6216 # Issue #30205 (note getsockname() can return None on OS X)

Callers 15

testStrAddrMethod · 0.95
testBytesAddrMethod · 0.95
testUnencodableAddrMethod · 0.95
setUpMethod · 0.45
clientSetUpMethod · 0.45
clientSetUpMethod · 0.45
setUpMethod · 0.45
test_reprMethod · 0.45
testSendtoErrorsMethod · 0.45
testSockNameMethod · 0.45
testCloseExceptionMethod · 0.45

Calls 3

strFunction · 0.85
skipTestMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected