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

Method test_addressfamily_enum

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

Source from the content-addressed store, hash-verified

2146 self.assertEqual(cm.exception.errno, errno.ENOTSOCK)
2147
2148 def test_addressfamily_enum(self):
2149 import _socket, enum
2150 CheckedAddressFamily = enum._old_convert_(
2151 enum.IntEnum, 'AddressFamily', 'socket',
2152 lambda C: C.isupper() and C.startswith('AF_'),
2153 source=_socket,
2154 )
2155 enum._test_simple_enum(CheckedAddressFamily, socket.AddressFamily)
2156
2157 def test_socketkind_enum(self):
2158 import _socket, enum

Callers

nothing calls this directly

Calls 2

isupperMethod · 0.45
startswithMethod · 0.45

Tested by

no test coverage detected