summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorpxinwr <peixing.xin@windriver.com>2020-11-28 21:48:38 (GMT)
committerGitHub <noreply@github.com>2020-11-28 21:48:38 (GMT)
commit64c8f81047e393d3c54b15a6f9d800e9b26a816c (patch)
tree1e859ec91fef1a6629691ad2521c289f7717ea97 /Lib
parent7a240aef1526e56943381dca3fbda139962500f2 (diff)
downloadcpython-64c8f81047e393d3c54b15a6f9d800e9b26a816c.zip
cpython-64c8f81047e393d3c54b15a6f9d800e9b26a816c.tar.gz
cpython-64c8f81047e393d3c54b15a6f9d800e9b26a816c.tar.bz2
skip test_getaddrinfo_ipv6_scopeid_symbolic and test_getnameinfo_ipv6_scopeid_symbolic on VxWorks (GH-23518)
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/test_socket.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 5f57ab2..e4af713 100755
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -1738,6 +1738,7 @@ class GeneralModuleTests(unittest.TestCase):
@unittest.skipUnless(socket_helper.IPV6_ENABLED, 'IPv6 required for this test.')
@unittest.skipIf(sys.platform == 'win32', 'does not work on Windows')
@unittest.skipIf(AIX, 'Symbolic scope id does not work')
+ @unittest.skipUnless(hasattr(socket, 'if_nameindex'), "test needs socket.if_nameindex()")
def test_getaddrinfo_ipv6_scopeid_symbolic(self):
# Just pick up any network interface (Linux, Mac OS X)
(ifindex, test_interface) = socket.if_nameindex()[0]
@@ -1770,6 +1771,7 @@ class GeneralModuleTests(unittest.TestCase):
@unittest.skipUnless(socket_helper.IPV6_ENABLED, 'IPv6 required for this test.')
@unittest.skipIf(sys.platform == 'win32', 'does not work on Windows')
@unittest.skipIf(AIX, 'Symbolic scope id does not work')
+ @unittest.skipUnless(hasattr(socket, 'if_nameindex'), "test needs socket.if_nameindex()")
def test_getnameinfo_ipv6_scopeid_symbolic(self):
# Just pick up any network interface.
(ifindex, test_interface) = socket.if_nameindex()[0]