mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
#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:
parent
ba9fb0d83f
commit
1351ee704b
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue