]> granicus.if.org Git - python/commitdiff
Try to fix test_asyncio dual stack test when creating an IPv6 socket fails
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 19 Oct 2013 23:10:52 +0000 (01:10 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 19 Oct 2013 23:10:52 +0000 (01:10 +0200)
Lib/test/test_asyncio/test_events.py

index 7254e2dc5ab686a24283b6779449aca72671fd1e..098cf71f89d9224ed94900b955b093f14801c2c5 100644 (file)
@@ -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)