summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-10-19 23:10:52 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-10-19 23:10:52 (GMT)
commit0d9eefda3486057dbafd2453f03da39b667ca71d (patch)
treea9c3345b138b82fa5f725a710e3d40047706c9ce /Lib/test/test_asyncio
parent4ca7355901049ff9a873cf236091e6780d7a8126 (diff)
downloadcpython-0d9eefda3486057dbafd2453f03da39b667ca71d.zip
cpython-0d9eefda3486057dbafd2453f03da39b667ca71d.tar.gz
cpython-0d9eefda3486057dbafd2453f03da39b667ca71d.tar.bz2
Try to fix test_asyncio dual stack test when creating an IPv6 socket fails
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r--Lib/test/test_asyncio/test_events.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
index 7254e2d..098cf71 100644
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -17,7 +17,7 @@ import time
import errno
import unittest
import unittest.mock
-from test.support import find_unused_port
+from test.support import find_unused_port, IPV6_ENABLED
from asyncio import futures
@@ -684,7 +684,7 @@ class EventLoopTestsMixin:
server.close()
- @unittest.skipUnless(socket.has_ipv6, 'IPv6 not supported')
+ @unittest.skipUnless(IPV6_ENABLED, 'IPv6 not supported or enabled')
def test_create_server_dual_stack(self):
f_proto = futures.Future(loop=self.loop)