From: Giampaolo RodolĂ  Date: Mon, 16 Aug 2010 05:08:11 +0000 (+0000) Subject: fix getaddrinfo test failure on OSX caused by AI_CANNAME erroneously used as the... X-Git-Tag: v3.2a2~285 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=677d95c2584ca40bb6dc67f8f47e41cf0ea99926;p=thirdparty%2FPython%2Fcpython.git fix getaddrinfo test failure on OSX caused by AI_CANNAME erroneously used as the value for 'proto' --- diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 93923ced4124..48ba5f0ad6b9 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -608,7 +608,7 @@ class GeneralModuleTests(unittest.TestCase): for _, socktype, _, _, _ in infos: self.assertEqual(socktype, socket.SOCK_STREAM) # test proto and flags arguments - socket.getaddrinfo(HOST, None, 0, 0, socket.AI_CANONNAME) + socket.getaddrinfo(HOST, None, 0, 0, socket.SOL_TCP) socket.getaddrinfo(HOST, None, 0, 0, 0, socket.AI_PASSIVE) # a server willing to support both IPv4 and IPv6 will # usually do this