mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Try to fix test_asyncio dual stack test when creating an IPv6 socket fails
This commit is contained in:
parent
4ca7355901
commit
0d9eefda34
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue