[Python-checkins] cpython: Un-backout e3ec6b17260c - the test fix was actually also necessary

antoine.pitrou python-checkins at python.org
Sun Oct 20 02:17:27 CEST 2013


http://hg.python.org/cpython/rev/68a7bc8bb663
changeset:   86502:68a7bc8bb663
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Sun Oct 20 02:16:40 2013 +0200
summary:
  Un-backout e3ec6b17260c - the test fix was actually also necessary

files:
  Lib/test/test_asyncio/test_events.py |  4 ++--
  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
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -17,7 +17,7 @@
 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
@@ -687,7 +687,7 @@
 
         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)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list