#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
1 changed files with 3 additions and 3 deletions

View File

@ -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