Commit 1351ee70 authored by R David Murray's avatar R David Murray

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

I forgot to run all the affected tests when I fixed smtpd.
parent ba9fb0d8
......@@ -144,8 +144,8 @@ def gethostname():
def gethostbyname(name):
return ""
def getaddrinfo(host, port):
return socket_module.getaddrinfo(host, port)
def getaddrinfo(*args, **kw):
return socket_module.getaddrinfo(*args, **kw)
gaierror = socket_module.gaierror
error = socket_module.error
......@@ -154,6 +154,6 @@ error = socket_module.error
# Constants
AF_INET = socket_module.AF_INET
AF_INET6 = socket_module.AF_INET6
SOCK_STREAM = None
SOCK_STREAM = socket_module.SOCK_STREAM
SOL_SOCKET = None
SO_REUSEADDR = None
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment