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

Method test_addressinfo_enum

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

Source from the content-addressed store, hash-verified

2173 enum._test_simple_enum(CheckedMsgFlag, socket.MsgFlag)
2174
2175 def test_addressinfo_enum(self):
2176 import _socket, enum
2177 CheckedAddressInfo = enum._old_convert_(
2178 enum.IntFlag, 'AddressInfo', 'socket',
2179 lambda C: C.isupper() and C.startswith('AI_'),
2180 source=_socket)
2181 enum._test_simple_enum(CheckedAddressInfo, socket.AddressInfo)
2182
2183
2184@unittest.skipUnless(HAVE_SOCKET_CAN, 'SocketCan required for this test.')

Callers

nothing calls this directly

Calls 2

isupperMethod · 0.45
startswithMethod · 0.45

Tested by

no test coverage detected