diff options
author | R David Murray <rdmurray@bitdance.com> | 2014-06-11 20:10:10 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2014-06-11 20:10:10 (GMT) |
commit | 1351ee704b1249b12987b7b2fede8742af097ded (patch) | |
tree | 24273284675953b3f1c27f2a9f8a0142dea57408 /Lib/test/mock_socket.py | |
parent | ba9fb0d83f1d6644bcabde250dbf663078945d92 (diff) | |
download | cpython-1351ee704b1249b12987b7b2fede8742af097ded.zip cpython-1351ee704b1249b12987b7b2fede8742af097ded.tar.gz cpython-1351ee704b1249b12987b7b2fede8742af097ded.tar.bz2 |
#14758: Fix the fix (fix getaddrinfo in mock_socket)
I forgot to run all the affected tests when I fixed smtpd.
Diffstat (limited to 'Lib/test/mock_socket.py')
-rw-r--r-- | Lib/test/mock_socket.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/mock_socket.py b/Lib/test/mock_socket.py index a4fbca6..441e29f 100644 --- a/Lib/test/mock_socket.py +++ b/Lib/test/mock_socket.py @@ -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 |