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

Method test_ipv6_only_default

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

Source from the content-addressed store, hash-verified

7380 "IPV6_V6ONLY option not supported")
7381 @unittest.skipUnless(socket_helper.IPV6_ENABLED, 'IPv6 required for this test')
7382 def test_ipv6_only_default(self):
7383 with socket.create_server(("::1", 0), family=socket.AF_INET6) as sock:
7384 assert sock.getsockopt(socket.IPPROTO_IPV6, socket.IPV6_V6ONLY)
7385
7386 @unittest.skipIf(not socket.has_dualstack_ipv6(),
7387 "dualstack_ipv6 not supported")

Callers

nothing calls this directly

Calls 2

create_serverMethod · 0.45
getsockoptMethod · 0.45

Tested by

no test coverage detected