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

Method test_addressinfo_enum

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

Source from the content-addressed store, hash-verified

2224 enum._test_simple_enum(CheckedMsgFlag, socket.MsgFlag)
2225
2226 def test_addressinfo_enum(self):
2227 import _socket, enum
2228 CheckedAddressInfo = enum._old_convert_(
2229 enum.IntFlag, 'AddressInfo', 'socket',
2230 lambda C: C.isupper() and C.startswith('AI_'),
2231 source=_socket)
2232 enum._test_simple_enum(CheckedAddressInfo, socket.AddressInfo)
2233
2234 @unittest.skipUnless(hasattr(socket.socket, "sendmsg"),"sendmsg not supported")
2235 def test_sendmsg_reentrant_ancillary_mutation(self):

Callers

nothing calls this directly

Calls 2

isupperMethod · 0.80
startswithMethod · 0.45

Tested by

no test coverage detected