David Edelsohn added the comment:

The current arguments to checkRecvmsgAddress() are the sockaddrs, so it does 
not know the protocol family. One potential patch to infer the family and apply 
the correct test is:

diff -r 035d8fed07ad Lib/test/test_socket.py
--- a/Lib/test/test_socket.py   Tue Jun 25 22:54:35 2013 +0200
+++ b/Lib/test/test_socket.py   Wed Jun 26 15:16:31 2013 -0700
@@ -1809,7 +1809,10 @@
     def checkRecvmsgAddress(self, addr1, addr2):
         # Called to compare the received address with the address of
         # the peer.
-        self.assertEqual(addr1, addr2)
+        if len(addr1) > 3 or len(addr2) > 3:
+            self.assertEqual(addr1[:-1], addr2[:-1])
+        else:
+            self.assertEqual(addr1, addr2)
 
     # Flags that are normally unset in msg_flags
     msg_flags_common_unset = 0

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18308>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to