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

Method test_dualstack_ipv6_family

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

Source from the content-addressed store, hash-verified

7387 "dualstack_ipv6 not supported")
7388 @unittest.skipUnless(socket_helper.IPV6_ENABLED, 'IPv6 required for this test')
7389 def test_dualstack_ipv6_family(self):
7390 with socket.create_server(("::1", 0), family=socket.AF_INET6,
7391 dualstack_ipv6=True) as sock:
7392 self.assertEqual(sock.family, socket.AF_INET6)
7393
7394
7395class CreateServerFunctionalTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

create_serverMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected