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

Method test_msgflag_enum

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

Source from the content-addressed store, hash-verified

2215 enum._test_simple_enum(CheckedSocketKind, socket.SocketKind)
2216
2217 def test_msgflag_enum(self):
2218 import _socket, enum
2219 CheckedMsgFlag = enum._old_convert_(
2220 enum.IntFlag, 'MsgFlag', 'socket',
2221 lambda C: C.isupper() and C.startswith('MSG_'),
2222 source=_socket,
2223 )
2224 enum._test_simple_enum(CheckedMsgFlag, socket.MsgFlag)
2225
2226 def test_addressinfo_enum(self):
2227 import _socket, enum

Callers

nothing calls this directly

Calls 2

isupperMethod · 0.80
startswithMethod · 0.45

Tested by

no test coverage detected