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

Method pickaddr

Lib/test/test_socketserver.py:79–87  ·  view source on GitHub ↗
(self, proto)

Source from the content-addressed store, hash-verified

77 self.test_files[:] = []
78
79 def pickaddr(self, proto):
80 if proto == socket.AF_INET:
81 return (HOST, 0)
82 else:
83 # XXX: We need a way to tell AF_UNIX to pick its own name
84 # like AF_INET provides port==0.
85 fn = socket_helper.create_unix_domain_name()
86 self.test_files.append(fn)
87 return fn
88
89 def make_server(self, addr, svrcls, hdlrbase):
90 class MyServer(svrcls):

Callers 2

run_serverMethod · 0.95
dgram_examineMethod · 0.95

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected