[Python-checkins] cpython (3.3): Issue #18308: don't take the scope ID into account when comparing IPv6

charles-francois.natali python-checkins at python.org
Tue Jul 9 19:17:29 CEST 2013


http://hg.python.org/cpython/rev/330c7aa2922b
changeset:   84527:330c7aa2922b
branch:      3.3
parent:      84525:09f86b4ac1a0
user:        Charles-François Natali <cf.natali at gmail.com>
date:        Tue Jul 09 19:15:43 2013 +0200
summary:
  Issue #18308: don't take the scope ID into account when comparing IPv6
addresses.

files:
  Lib/test/test_socket.py |  6 +++++-
  1 files changed, 5 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -3225,7 +3225,11 @@
 class SendrecvmsgUDP6TestBase(SendrecvmsgDgramFlagsBase,
                               SendrecvmsgConnectionlessBase,
                               ThreadedSocketTestMixin, UDP6TestBase):
-    pass
+
+    def checkRecvmsgAddress(self, addr1, addr2):
+        # Called to compare the received address with the address of
+        # the peer, ignoring scope ID
+        self.assertEqual(addr1[:-1], addr2[:-1])
 
 @requireAttrs(socket.socket, "sendmsg")
 @unittest.skipUnless(support.IPV6_ENABLED, 'IPv6 required for this test.')

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list