From: Antoine Pitrou Date: Sun, 20 Oct 2013 19:45:29 +0000 (+0200) Subject: Skip one asyncio test when IPv6 isn't supported (Windows buildbots) X-Git-Tag: v3.4.0b1~571^2~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d618004895729c16e13924f0db263dc572ac021;p=python Skip one asyncio test when IPv6 isn't supported (Windows buildbots) --- diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py index fd48fdd50b..9f36896fbf 100644 --- a/Lib/test/test_asyncio/test_base_events.py +++ b/Lib/test/test_asyncio/test_base_events.py @@ -5,6 +5,7 @@ import socket 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 @@ class BaseEventLoopWithSelectorTests(unittest.TestCase): 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,