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

Method test_msgflag_enum

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

Source from the content-addressed store, hash-verified

2164 enum._test_simple_enum(CheckedSocketKind, socket.SocketKind)
2165
2166 def test_msgflag_enum(self):
2167 import _socket, enum
2168 CheckedMsgFlag = enum._old_convert_(
2169 enum.IntFlag, 'MsgFlag', 'socket',
2170 lambda C: C.isupper() and C.startswith('MSG_'),
2171 source=_socket,
2172 )
2173 enum._test_simple_enum(CheckedMsgFlag, socket.MsgFlag)
2174
2175 def test_addressinfo_enum(self):
2176 import _socket, enum

Callers

nothing calls this directly

Calls 2

isupperMethod · 0.45
startswithMethod · 0.45

Tested by

no test coverage detected