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

Method getaddrinfo

Lib/test/test_asyncio/test_events.py:799–803  ·  view source on GitHub ↗
(host, port, *args, **kwargs)

Source from the content-addressed store, hash-verified

797 getaddrinfo_orig = self.loop.getaddrinfo
798
799 async def getaddrinfo(host, port, *args, **kwargs):
800 if port == port2:
801 return [(socket.AF_INET6, socket.SOCK_STREAM, 0, '', ('::1', 0, 0, 0)),
802 (socket.AF_INET, socket.SOCK_STREAM, 0, '', ('127.0.0.1', 0))]
803 return await getaddrinfo_orig(host, port, *args, **kwargs)
804
805 self.loop.getaddrinfo = getaddrinfo
806

Calls

no outgoing calls

Tested by

no test coverage detected