@@ -135,8 +135,7 @@ def test_create_datagram_endpoint_addrs_ipv4_nameaddr(self):
135135 self ._test_create_datagram_endpoint_addrs (
136136 socket .AF_INET , ('localhost' , 0 ))
137137
138- @unittest .skipUnless (tb .has_IPv6 , 'no IPv6' )
139- def test_create_datagram_endpoint_addrs_ipv6 (self ):
138+ def _test_create_datagram_endpoint_addrs_ipv6 (self ):
140139 self ._test_create_datagram_endpoint_addrs (
141140 socket .AF_INET6 , ('::1' , 0 ))
142141
@@ -326,6 +325,16 @@ def test_send_after_close(self):
326325 self .loop .run_until_complete (asyncio .sleep (0.01 ))
327326 s_transport .sendto (b'aaaa' , ('127.0.0.1' , 80 ))
328327
328+ @unittest .skipUnless (tb .has_IPv6 , 'no IPv6' )
329+ def test_create_datagram_endpoint_addrs_ipv6 (self ):
330+ self ._test_create_datagram_endpoint_addrs_ipv6 ()
331+
329332
330333class Test_AIO_UDP (_TestUDP , tb .AIOTestCase ):
331- pass
334+ @unittest .skipUnless (tb .has_IPv6 , 'no IPv6' )
335+ @unittest .skipIf (
336+ sys .version_info [:3 ] < (3 , 6 , 7 ) or sys .version_info [:3 ] == (3 , 7 , 0 ),
337+ 'bpo-27500: bug fixed in Python 3.6.7, 3.7.1 and above.' ,
338+ )
339+ def test_create_datagram_endpoint_addrs_ipv6 (self ):
340+ self ._test_create_datagram_endpoint_addrs_ipv6 ()
0 commit comments