summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2013-05-24 11:51:21 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2013-05-24 11:51:21 (GMT)
commitdc3e6cc452a2a4409a4d12804fab4e474abbf9ff (patch)
treed569856625cff5f0a4b80e70a2e33c3db9cf4180 /Lib/test
parentcbc77bbbc0d0cbdb50889f556b9a514870481314 (diff)
parent27a4ac535f112b87d91f433eb9edcd0ae9988354 (diff)
downloadcpython-dc3e6cc452a2a4409a4d12804fab4e474abbf9ff.zip
cpython-dc3e6cc452a2a4409a4d12804fab4e474abbf9ff.tar.gz
cpython-dc3e6cc452a2a4409a4d12804fab4e474abbf9ff.tar.bz2
(3.3->default) 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/test')
-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 546d793..a2de398 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -1201,6 +1201,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(OSError, socket.getnameinfo, ('mail.python.org',0), 0)