Skip to content

Commit 64c8f81

Browse files
authored
skip test_getaddrinfo_ipv6_scopeid_symbolic and test_getnameinfo_ipv6_scopeid_symbolic on VxWorks (GH-23518)
1 parent 7a240ae commit 64c8f81

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Lib/test/test_socket.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,6 +1738,7 @@ def test_getaddrinfo_ipv6_basic(self):
17381738
@unittest.skipUnless(socket_helper.IPV6_ENABLED, 'IPv6 required for this test.')
17391739
@unittest.skipIf(sys.platform == 'win32', 'does not work on Windows')
17401740
@unittest.skipIf(AIX, 'Symbolic scope id does not work')
1741+
@unittest.skipUnless(hasattr(socket, 'if_nameindex'), "test needs socket.if_nameindex()")
17411742
def test_getaddrinfo_ipv6_scopeid_symbolic(self):
17421743
# Just pick up any network interface (Linux, Mac OS X)
17431744
(ifindex, test_interface) = socket.if_nameindex()[0]
@@ -1770,6 +1771,7 @@ def test_getaddrinfo_ipv6_scopeid_numeric(self):
17701771
@unittest.skipUnless(socket_helper.IPV6_ENABLED, 'IPv6 required for this test.')
17711772
@unittest.skipIf(sys.platform == 'win32', 'does not work on Windows')
17721773
@unittest.skipIf(AIX, 'Symbolic scope id does not work')
1774+
@unittest.skipUnless(hasattr(socket, 'if_nameindex'), "test needs socket.if_nameindex()")
17731775
def test_getnameinfo_ipv6_scopeid_symbolic(self):
17741776
# Just pick up any network interface.
17751777
(ifindex, test_interface) = socket.if_nameindex()[0]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
skip test_getaddrinfo_ipv6_scopeid_symbolic and test_getnameinfo_ipv6_scopeid_symbolic on VxWorks

0 commit comments

Comments
 (0)