diff options
author | Giampaolo RodolĂ <g.rodola@gmail.com> | 2010-08-16 05:08:11 (GMT) |
---|---|---|
committer | Giampaolo RodolĂ <g.rodola@gmail.com> | 2010-08-16 05:08:11 (GMT) |
commit | 677d95c2584ca40bb6dc67f8f47e41cf0ea99926 (patch) | |
tree | 010c64bc554f0baa6684b30e2d87e3678d5475cb /Lib/test | |
parent | daf235032fc3e0cfbfc279d60c1d12aff8f9b0d2 (diff) | |
download | cpython-677d95c2584ca40bb6dc67f8f47e41cf0ea99926.zip cpython-677d95c2584ca40bb6dc67f8f47e41cf0ea99926.tar.gz cpython-677d95c2584ca40bb6dc67f8f47e41cf0ea99926.tar.bz2 |
fix getaddrinfo test failure on OSX caused by AI_CANNAME erroneously used as the value for 'proto'
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_socket.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 93923ce..48ba5f0 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 |