Skip to content

Commit a732de1

Browse files
committed
Make mypy and flake8 happy
1 parent 2930a29 commit a732de1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

test_zeroconf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,9 @@ def test_incoming_ipv6(self):
563563
generated.add_additional_answer(answer)
564564
packet = generated.packet()
565565
parsed = r.DNSIncoming(packet)
566-
answer = parsed.answers[0]
567-
assert answer.address == packed
566+
record = parsed.answers[0]
567+
assert isinstance(record, r.DNSAddress)
568+
assert record.address == packed
568569

569570

570571
class TestRegistrar(unittest.TestCase):
@@ -696,7 +697,7 @@ def test_integration_with_listener(self):
696697
zeroconf_registrar.close()
697698

698699
@unittest.skipIf(not socket.has_ipv6, 'Requires IPv6')
699-
def test_integration_with_listener_AAAA(self):
700+
def test_integration_with_listener_v6_records(self):
700701

701702
type_ = "_test-srvc-type._tcp.local."
702703
name = "xxxyyy"

0 commit comments

Comments
 (0)