@@ -1454,7 +1454,7 @@ def testIPv6toString(self):
14541454 assertInvalid ('1:2:3:4:5:6:' )
14551455 assertInvalid ('1:2:3:4:5:6:7:8:0' )
14561456 # bpo-29972: inet_pton() doesn't fail on AIX
1457- if not AIX :
1457+ if not AIX and sys . platform != 'cygwin' :
14581458 assertInvalid ('1:2:3:4:5:6:7:8:' )
14591459
14601460 self .assertEqual (b'\x00 ' * 12 + b'\xfe \x2a \x17 \x40 ' ,
@@ -2001,7 +2001,8 @@ def test_getfqdn_filter_localhost(self):
20012001 self .assertEqual (socket .getfqdn (), socket .getfqdn ("::" ))
20022002
20032003 @unittest .skipUnless (socket_helper .IPV6_ENABLED , 'IPv6 required for this test.' )
2004- @unittest .skipIf (sys .platform == 'win32' , 'does not work on Windows' )
2004+ @unittest .skipIf (sys .platform in ('win32' , 'cygwin' ),
2005+ 'does not work on Windows' )
20052006 @unittest .skipIf (AIX , 'Symbolic scope id does not work' )
20062007 @unittest .skipUnless (hasattr (socket , 'if_nameindex' ), "test needs socket.if_nameindex()" )
20072008 @support .skip_android_selinux ('if_nameindex' )
@@ -2035,7 +2036,7 @@ def test_getaddrinfo_ipv6_scopeid_numeric(self):
20352036 self .assertEqual (sockaddr , ('ff02::1de:c0:face:8d' , 1234 , 0 , ifindex ))
20362037
20372038 @unittest .skipUnless (socket_helper .IPV6_ENABLED , 'IPv6 required for this test.' )
2038- @unittest .skipIf (sys .platform == 'win32' , 'does not work on Windows' )
2039+ @unittest .skipIf (sys .platform in ( 'win32' , 'cygwin' ) , 'does not work on Windows' )
20392040 @unittest .skipIf (AIX , 'Symbolic scope id does not work' )
20402041 @unittest .skipUnless (hasattr (socket , 'if_nameindex' ), "test needs socket.if_nameindex()" )
20412042 @support .skip_android_selinux ('if_nameindex' )
0 commit comments