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

Method test_socketkind_enum

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

Source from the content-addressed store, hash-verified

2155 enum._test_simple_enum(CheckedAddressFamily, socket.AddressFamily)
2156
2157 def test_socketkind_enum(self):
2158 import _socket, enum
2159 CheckedSocketKind = enum._old_convert_(
2160 enum.IntEnum, 'SocketKind', 'socket',
2161 lambda C: C.isupper() and C.startswith('SOCK_'),
2162 source=_socket,
2163 )
2164 enum._test_simple_enum(CheckedSocketKind, socket.SocketKind)
2165
2166 def test_msgflag_enum(self):
2167 import _socket, enum

Callers

nothing calls this directly

Calls 2

isupperMethod · 0.45
startswithMethod · 0.45

Tested by

no test coverage detected