Skip one asyncio test when IPv6 isn't supported (Windows buildbots)

This commit is contained in:
Antoine Pitrou 2013-10-20 21:45:29 +02:00
parent cb1fe98f76
commit 7d61800489
1 changed files with 2 additions and 0 deletions

View File

@ -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,