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

Method test_socketkind_enum

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

Source from the content-addressed store, hash-verified

2206 enum._test_simple_enum(CheckedAddressFamily, socket.AddressFamily)
2207
2208 def test_socketkind_enum(self):
2209 import _socket, enum
2210 CheckedSocketKind = enum._old_convert_(
2211 enum.IntEnum, 'SocketKind', 'socket',
2212 lambda C: C.isupper() and C.startswith('SOCK_'),
2213 source=_socket,
2214 )
2215 enum._test_simple_enum(CheckedSocketKind, socket.SocketKind)
2216
2217 def test_msgflag_enum(self):
2218 import _socket, enum

Callers

nothing calls this directly

Calls 2

isupperMethod · 0.80
startswithMethod · 0.45

Tested by

no test coverage detected