Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_socket.py @ 64059:92f7877088af
fix getaddrinfo test failure on OSX caused by AI_CANNAME erroneously used as the value for 'proto'
| author | Giampaolo Rodolà <g.rodola@gmail.com> |
|---|---|
| date | Mon, 16 Aug 2010 05:08:11 +0000 |
| parents | b7ab77fd27b7 |
| children | ca2a859e9bf6 |
line wrap: on
line diff
--- a/Lib/test/test_socket.py Mon Aug 16 01:48:14 2010 +0000 +++ b/Lib/test/test_socket.py Mon Aug 16 05:08:11 2010 +0000 @@ -608,7 +608,7 @@ 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
