diff options
author | Charles-François Natali <cf.natali@gmail.com> | 2013-07-09 17:15:43 (GMT) |
---|---|---|
committer | Charles-François Natali <cf.natali@gmail.com> | 2013-07-09 17:15:43 (GMT) |
commit | 37114bb548f3e3062417bc2be9ac9ab230988331 (patch) | |
tree | e4936f86a923ca6cb72bbc1e042aeee4aade7dcf /Lib/test/test_socket.py | |
parent | ae6275d8c82e6d547161d58279d46ed6b743d1e1 (diff) | |
download | cpython-37114bb548f3e3062417bc2be9ac9ab230988331.zip cpython-37114bb548f3e3062417bc2be9ac9ab230988331.tar.gz cpython-37114bb548f3e3062417bc2be9ac9ab230988331.tar.bz2 |
Issue #18308: don't take the scope ID into account when comparing IPv6
addresses.
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r-- | 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 index 25bf0a1..0048e3d 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -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.') |