[Python-checkins] cpython: Skip one asyncio test when IPv6 isn't supported (Windows buildbots)

antoine.pitrou python-checkins at python.org
Sun Oct 20 21:45:39 CEST 2013


http://hg.python.org/cpython/rev/f43c48129ec6
changeset:   86517:f43c48129ec6
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Sun Oct 20 21:45:29 2013 +0200
summary:
  Skip one asyncio test when IPv6 isn't supported (Windows buildbots)

files:
  Lib/test/test_asyncio/test_base_events.py |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py
--- a/Lib/test/test_asyncio/test_base_events.py
+++ b/Lib/test/test_asyncio/test_base_events.py
@@ -5,6 +5,7 @@
 import time
 import unittest
 import unittest.mock
+from test.support import find_unused_port, IPV6_ENABLED
 
 from asyncio import base_events
 from asyncio import events
@@ -533,6 +534,7 @@
         self.assertRaises(
             OSError, self.loop.run_until_complete, coro)
 
+    @unittest.skipUnless(IPV6_ENABLED, 'IPv6 not supported or enabled')
     def test_create_datagram_endpoint_no_matching_family(self):
         coro = self.loop.create_datagram_endpoint(
             protocols.DatagramProtocol,

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


More information about the Python-checkins mailing list