Skip to content

Commit 9a7f6cd

Browse files
committed
fix: imports
1 parent 717b5dc commit 9a7f6cd

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/zeroconf/_handlers/query_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from typing import TYPE_CHECKING, List, Optional, Set, Tuple, Union, cast
2424

2525
from .._cache import DNSCache, _UniqueRecordsType
26-
from .._core import _MDNS_PORT
2726
from .._dns import DNSAddress, DNSPointer, DNSQuestion, DNSRecord, DNSRRSet
2827
from .._protocol.incoming import DNSIncoming
2928
from .._services.info import ServiceInfo
@@ -33,6 +32,7 @@
3332
_ADDRESS_RECORD_TYPES,
3433
_CLASS_IN,
3534
_DNS_OTHER_TTL,
35+
_MDNS_PORT,
3636
_ONE_SECOND,
3737
_SERVICE_TYPE_ENUMERATION_NAME,
3838
_TYPE_A,

tests/conftest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
import pytest
1010

11-
from zeroconf import _core, const
11+
from zeroconf import const
12+
from zeroconf._handlers import query_handler
1213

1314

1415
@pytest.fixture(autouse=True)
@@ -23,7 +24,7 @@ def verify_threads_ended():
2324
@pytest.fixture
2425
def run_isolated():
2526
"""Change the mDNS port to run the test in isolation."""
26-
with patch.object(_core, "_MDNS_PORT", 5454), patch.object(const, "_MDNS_PORT", 5454):
27+
with patch.object(query_handler, "_MDNS_PORT", 5454), patch.object(const, "_MDNS_PORT", 5454):
2728
yield
2829

2930

0 commit comments

Comments
 (0)