summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2013-05-24 13:47:37 +0200
committerRonald Oussoren <ronaldoussoren@mac.com>2013-05-24 13:47:37 +0200
commit27a4ac535f112b87d91f433eb9edcd0ae9988354 (patch)
tree6a2ae9b31323e7134f237af7e2209bc880d74fec /Lib
parent05ec6aca3a73772f16128628e8c3786b3e0cc4e6 (diff)
downloadcpython-git-27a4ac535f112b87d91f433eb9edcd0ae9988354.tar.gz
Issue #17269: Workaround for a platform bug in getaddrinfo on OSX
Without this patch socket.getaddrinfo crashed when called with some unusual argument combinations.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_socket.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index d20e37bff6..546a10d23a 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -1166,6 +1166,9 @@ class GeneralModuleTests(unittest.TestCase):
# Issue #6697.
self.assertRaises(UnicodeEncodeError, socket.getaddrinfo, 'localhost', '\uD800')
+ # Issue 17269
+ socket.getaddrinfo("localhost", None, 0, 0, 0, socket.AI_NUMERICSERV)
+
def test_getnameinfo(self):
# only IP addresses are allowed
self.assertRaises(socket.error, socket.getnameinfo, ('mail.python.org',0), 0)