Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

Commit 20aef32

Browse files
committed
Skip test_asyncio dual stack test when IPv6 not supported.
1 parent f72a4c6 commit 20aef32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_events.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import errno
1818
import unittest
1919
import unittest.mock
20-
from test.support import find_unused_port
20+
from test.support import find_unused_port, IPV6_ENABLED
2121

2222

2323
from asyncio import futures
@@ -684,7 +684,7 @@ def test_create_server_addr_in_use(self):
684684

685685
server.close()
686686

687-
@unittest.skipUnless(socket.has_ipv6, 'IPv6 not supported')
687+
@unittest.skipUnless(IPV6_ENABLED, 'IPv6 not supported or enabled')
688688
def test_create_server_dual_stack(self):
689689
f_proto = futures.Future(loop=self.loop)
690690

0 commit comments

Comments
 (0)