]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix getaddrinfo test failure on OSX caused by AI_CANNAME erroneously used as the...
authorGiampaolo Rodolà <g.rodola@gmail.com>
Mon, 16 Aug 2010 05:08:11 +0000 (05:08 +0000)
committerGiampaolo Rodolà <g.rodola@gmail.com>
Mon, 16 Aug 2010 05:08:11 +0000 (05:08 +0000)
Lib/test/test_socket.py

index 93923ced4124b3e3bc7df5cc4c83a245a06f4812..48ba5f0ad6b9722c754c1748d2d6e16ad7601dc1 100644 (file)
@@ -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