#14758: Fix the fix (fix getaddrinfo in mock_socket)

I forgot to run all the affected tests when I fixed smtpd.
This commit is contained in:
R David Murray 2014-06-11 16:10:10 -04:00
parent ba9fb0d83f
commit 1351ee704b

View file

@ -144,8 +144,8 @@ def gethostname():
def gethostbyname(name): def gethostbyname(name):
return "" return ""
def getaddrinfo(host, port): def getaddrinfo(*args, **kw):
return socket_module.getaddrinfo(host, port) return socket_module.getaddrinfo(*args, **kw)
gaierror = socket_module.gaierror gaierror = socket_module.gaierror
error = socket_module.error error = socket_module.error
@ -154,6 +154,6 @@ error = socket_module.error
# Constants # Constants
AF_INET = socket_module.AF_INET AF_INET = socket_module.AF_INET
AF_INET6 = socket_module.AF_INET6 AF_INET6 = socket_module.AF_INET6
SOCK_STREAM = None SOCK_STREAM = socket_module.SOCK_STREAM
SOL_SOCKET = None SOL_SOCKET = None
SO_REUSEADDR = None SO_REUSEADDR = None