MCPcopy Create free account
hub / github.com/dateutil/dateutil / pointer_mock

Function pointer_mock

docs/conf.py:190–194  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

188
189
190def pointer_mock(*args, **kwargs):
191 try:
192 return ctypes.POINTER(*args, **kwargs)
193 except Exception:
194 return None
195
196ctypes.POINTER = pointer_mock
197sys.modules['ctypes'] = ctypes

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected