This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients exarkun, flox, giampaolo.rodola, loewis, mark.dickinson, pitrou, ronaldoussoren, skrah
Date 2010-08-15.19:47:16
SpamBayes Score 1.1992744e-05
Marked as misclassified No
Message-id <1281901638.32.0.679287996689.issue8857@psf.upfronthosting.co.za>
In-reply-to
Content
I think there is a missing '0' in the failing line:

Index: Lib/test/test_socket.py
===================================================================
--- Lib/test/test_socket.py	(revision 84079)
+++ Lib/test/test_socket.py	(working copy)
@@ -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, 0, socket.AI_CANONNAME)
         socket.getaddrinfo(HOST, None, 0, 0, 0, socket.AI_PASSIVE)
         # a server willing to support both IPv4 and IPv6 will
         # usually do this



With this patch the tests pass, without the patch AI_CANNAME gets used as the value for 'proto'.
History
Date User Action Args
2010-08-15 19:47:18ronaldoussorensetrecipients: + ronaldoussoren, loewis, exarkun, mark.dickinson, pitrou, giampaolo.rodola, skrah, flox
2010-08-15 19:47:18ronaldoussorensetmessageid: <1281901638.32.0.679287996689.issue8857@psf.upfronthosting.co.za>
2010-08-15 19:47:16ronaldoussorenlinkissue8857 messages
2010-08-15 19:47:16ronaldoussorencreate