summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorCharles-François Natali <cf.natali@gmail.com>2013-07-09 17:16:32 (GMT)
committerCharles-François Natali <cf.natali@gmail.com>2013-07-09 17:16:32 (GMT)
commit19361a2046c2f4006decf0e35265821dda2e78e7 (patch)
tree4f2a8f70e5d6815617490715e806339d68d34bba /Lib
parent273c292dfaa3baa128c3853a62865a16d0e2997e (diff)
parent37114bb548f3e3062417bc2be9ac9ab230988331 (diff)
downloadcpython-19361a2046c2f4006decf0e35265821dda2e78e7.zip
cpython-19361a2046c2f4006decf0e35265821dda2e78e7.tar.gz
cpython-19361a2046c2f4006decf0e35265821dda2e78e7.tar.bz2
Issue #18308: don't take the scope ID into account when comparing IPv6
addresses.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_socket.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 969677b..54fb9a1 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -3312,7 +3312,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.')