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

Method test_ipv6_only_default

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

Source from the content-addressed store, hash-verified

7290 "IPV6_V6ONLY option not supported")
7291 @unittest.skipUnless(socket_helper.IPV6_ENABLED, 'IPv6 required for this test')
7292 def test_ipv6_only_default(self):
7293 with socket.create_server(("::1", 0), family=socket.AF_INET6) as sock:
7294 assert sock.getsockopt(socket.IPPROTO_IPV6, socket.IPV6_V6ONLY)
7295
7296 @unittest.skipIf(not socket.has_dualstack_ipv6(),
7297 "dualstack_ipv6 not supported")

Callers

nothing calls this directly

Calls 2

create_serverMethod · 0.45
getsockoptMethod · 0.45

Tested by

no test coverage detected