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

Method socketpair

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

Source from the content-addressed store, hash-verified

5292 # `_socket.socketpair` does not exist. (AF_INET does not work with
5293 # _socket.socketpair on many platforms).
5294 def socketpair(self):
5295 # called by super().setUp().
5296 try:
5297 return socket.socketpair(socket.AF_INET6)
5298 except OSError:
5299 return socket.socketpair(socket.AF_INET)
5300
5301 # Local imports in this class make for easy security fix backporting.
5302

Callers

nothing calls this directly

Calls 1

socketpairMethod · 0.45

Tested by

no test coverage detected