def _failing_getaddrinfo(*args):
 raise socket.gaierror(errno.EIO, 'mock: lookup failed')

def _failing_getaddrinfo ( * args ) : raise socket . gaierror ( errno . EIO , 'mock: lookup failed' )
dummy implementation of getaddrinfo for use in mocks .