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

Method test_dualstack_ipv6_family

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

Source from the content-addressed store, hash-verified

7297 "dualstack_ipv6 not supported")
7298 @unittest.skipUnless(socket_helper.IPV6_ENABLED, 'IPv6 required for this test')
7299 def test_dualstack_ipv6_family(self):
7300 with socket.create_server(("::1", 0), family=socket.AF_INET6,
7301 dualstack_ipv6=True) as sock:
7302 self.assertEqual(sock.family, socket.AF_INET6)
7303
7304
7305class CreateServerFunctionalTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

create_serverMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected