diff options
author | Ross Lagerwall <rosslagerwall@gmail.com> | 2012-07-08 07:53:57 (GMT) |
---|---|---|
committer | Ross Lagerwall <rosslagerwall@gmail.com> | 2012-07-08 07:53:57 (GMT) |
commit | 8d459f0cb850aebf8da524580a7fa389e803be4d (patch) | |
tree | 5abe6f21d52ec266274505245247e828e5ede56f | |
parent | 297b143c6d118a30319d97c3de000d315f123fa3 (diff) | |
download | cpython-8d459f0cb850aebf8da524580a7fa389e803be4d.zip cpython-8d459f0cb850aebf8da524580a7fa389e803be4d.tar.gz cpython-8d459f0cb850aebf8da524580a7fa389e803be4d.tar.bz2 |
#15284: Skip {send,recv}msg tests with disabled IPv6
Patch by Brian Brazil.
-rw-r--r-- | Lib/test/test_socket.py | 10 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 8 insertions, 5 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 8520401..7716d33 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -3202,28 +3202,28 @@ class SendrecvmsgUDP6TestBase(SendrecvmsgDgramFlagsBase, pass @requireAttrs(socket.socket, "sendmsg") -@unittest.skipUnless(socket.has_ipv6, "Python not built with IPv6 support") +@unittest.skipUnless(support.IPV6_ENABLED, 'IPv6 required for this test.') @requireSocket("AF_INET6", "SOCK_DGRAM") @unittest.skipUnless(thread, 'Threading required for this test.') class SendmsgUDP6Test(SendmsgConnectionlessTests, SendrecvmsgUDP6TestBase): pass @requireAttrs(socket.socket, "recvmsg") -@unittest.skipUnless(socket.has_ipv6, "Python not built with IPv6 support") +@unittest.skipUnless(support.IPV6_ENABLED, 'IPv6 required for this test.') @requireSocket("AF_INET6", "SOCK_DGRAM") @unittest.skipUnless(thread, 'Threading required for this test.') class RecvmsgUDP6Test(RecvmsgTests, SendrecvmsgUDP6TestBase): pass @requireAttrs(socket.socket, "recvmsg_into") -@unittest.skipUnless(socket.has_ipv6, "Python not built with IPv6 support") +@unittest.skipUnless(support.IPV6_ENABLED, 'IPv6 required for this test.') @requireSocket("AF_INET6", "SOCK_DGRAM") @unittest.skipUnless(thread, 'Threading required for this test.') class RecvmsgIntoUDP6Test(RecvmsgIntoTests, SendrecvmsgUDP6TestBase): pass @requireAttrs(socket.socket, "recvmsg") -@unittest.skipUnless(socket.has_ipv6, "Python not built with IPv6 support") +@unittest.skipUnless(support.IPV6_ENABLED, 'IPv6 required for this test.') @requireAttrs(socket, "IPPROTO_IPV6") @requireSocket("AF_INET6", "SOCK_DGRAM") @unittest.skipUnless(thread, 'Threading required for this test.') @@ -3232,7 +3232,7 @@ class RecvmsgRFC3542AncillaryUDP6Test(RFC3542AncillaryTest, pass @requireAttrs(socket.socket, "recvmsg_into") -@unittest.skipUnless(socket.has_ipv6, "Python not built with IPv6 support") +@unittest.skipUnless(support.IPV6_ENABLED, 'IPv6 required for this test.') @requireAttrs(socket, "IPPROTO_IPV6") @requireSocket("AF_INET6", "SOCK_DGRAM") @unittest.skipUnless(thread, 'Threading required for this test.') @@ -93,6 +93,9 @@ Tools/Demos Tests ----- +- Issue #15284: Skip {send,recv}msg tests in test_socket when IPv6 is not + enabled. Patch by Brian Brazil. + - Issue #15277: Fix a resource leak in support.py when IPv6 is disabled. Patch by Brian Brazil. |