Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test_resolver.py
  • Loading branch information
Dreamsorcerer authored Aug 20, 2024
commit 16f10c33171b46b2c4430f8a0f95aaf81b41a845
14 changes: 1 addition & 13 deletions tests/test_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@

import pytest

from aiohttp.resolver import (
_NUMERIC_SOCKET_FLAGS,
_SUPPORTS_SCOPE_ID,
AsyncResolver,
DefaultResolver,
ThreadedResolver,
)
from aiohttp.resolver import _NUMERIC_SOCKET_FLAGS, AsyncResolver, DefaultResolver, ThreadedResolver

try:
import aiodns
Expand Down Expand Up @@ -138,9 +132,6 @@ async def test_async_resolver_positive_ipv4_lookup(loop: Any) -> None:


@pytest.mark.skipif(not getaddrinfo, reason="aiodns >=3.2.0 required")
@pytest.mark.skipif(
not _SUPPORTS_SCOPE_ID, reason="python version does not support scope id"
)
async def test_async_resolver_positive_link_local_ipv6_lookup(loop: Any) -> None:
with patch("aiodns.DNSResolver") as mock:
mock().getaddrinfo.return_value = fake_aiodns_getaddrinfo_ipv6_result(
Expand Down Expand Up @@ -203,9 +194,6 @@ async def test_threaded_resolver_positive_lookup() -> None:
ipaddress.ip_address(real[0]["host"])


@pytest.mark.skipif(
not _SUPPORTS_SCOPE_ID, reason="python version does not support scope id"
)
async def test_threaded_resolver_positive_ipv6_link_local_lookup() -> None:
loop = Mock()
loop.getaddrinfo = fake_ipv6_addrinfo(["fe80::1"])
Expand Down