From: Antoine Pitrou Date: Sat, 19 Oct 2013 23:10:52 +0000 (+0200) Subject: Try to fix test_asyncio dual stack test when creating an IPv6 socket fails X-Git-Tag: v3.4.0a4~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d9eefda3486057dbafd2453f03da39b667ca71d;p=python Try to fix test_asyncio dual stack test when creating an IPv6 socket fails --- diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 7254e2dc5a..098cf71f89 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)