fix getaddrinfo test failure on OSX caused by AI_CANNAME erroneously used as the value for 'proto'
This commit is contained in:
parent
daf235032f
commit
677d95c258
|
@ -608,7 +608,7 @@ class GeneralModuleTests(unittest.TestCase):
|
||||||
for _, socktype, _, _, _ in infos:
|
for _, socktype, _, _, _ in infos:
|
||||||
self.assertEqual(socktype, socket.SOCK_STREAM)
|
self.assertEqual(socktype, socket.SOCK_STREAM)
|
||||||
# test proto and flags arguments
|
# 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)
|
socket.getaddrinfo(HOST, None, 0, 0, 0, socket.AI_PASSIVE)
|
||||||
# a server willing to support both IPv4 and IPv6 will
|
# a server willing to support both IPv4 and IPv6 will
|
||||||
# usually do this
|
# usually do this
|
||||||
|
|
Loading…
Reference in New Issue