[Python-checkins] cpython: #14758: Fix the fix (fix getaddrinfo in mock_socket)

r.david.murray python-checkins at python.org
Wed Jun 11 22:21:38 CEST 2014


http://hg.python.org/cpython/rev/9b0d58b0c712
changeset: 91138:9b0d58b0c712
user: R David Murray <rdmurray at bitdance.com>
date: Wed Jun 11 16:10:10 2014 -0400
summary:
 #14758: Fix the fix (fix getaddrinfo in mock_socket)
I forgot to run all the affected tests when I fixed smtpd.
files:
 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
--- a/Lib/test/mock_socket.py
+++ b/Lib/test/mock_socket.py
@@ -144,8 +144,8 @@
 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 @@
 # 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
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /