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

Method pickaddr

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

Source from the content-addressed store, hash-verified

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

Callers 2

run_serverMethod · 0.95
dgram_examineMethod · 0.95

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected