]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Fix broken test.
authorBrian Wellington <bwelling@xbill.org>
Mon, 21 Jul 2025 20:33:05 +0000 (13:33 -0700)
committerBrian Wellington <bwelling@xbill.org>
Mon, 21 Jul 2025 20:33:05 +0000 (13:33 -0700)
With the change in #1209, an empty tuple is no longer invalid when
specifying resolvers.  It was failing before because it was a tuple, and
tuples are now valid (and there are no checks for empty sequences).

tests/test_resolver.py

index e99b6bdf28e4b24edcbad1890d7c42c1f1038360..752906415f148c9e49b16b1efb6f5fa4b40995fe 100644 (file)
@@ -1015,7 +1015,6 @@ class ResolverNameserverValidTypeTestCase(unittest.TestCase):
             "1.2.3.4",
             1234,
             (1, 2, 3, 4),
-            (),
             {"invalid": "nameserver"},
         ]
         for invalid_nameserver in invalid_nameservers: