]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #18308: don't take the scope ID into account when comparing IPv6
authorCharles-François Natali <cf.natali@gmail.com>
Tue, 9 Jul 2013 17:15:43 +0000 (19:15 +0200)
committerCharles-François Natali <cf.natali@gmail.com>
Tue, 9 Jul 2013 17:15:43 +0000 (19:15 +0200)
addresses.

Lib/test/test_socket.py

index 25bf0a189fa4852ed3a559168d4fbc9f2363f1f7..0048e3d074a73234c7f89f3ec0fc00ceab095822 100644 (file)
@@ -3225,7 +3225,11 @@ class RecvmsgIntoUDPTest(RecvmsgIntoTests, SendrecvmsgUDPTestBase):
 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.')