]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
fix testInvalidDigestLengthCDS0 for 3.15 main
authorBob Halley <halley@dnspython.org>
Sun, 12 Apr 2026 17:47:20 +0000 (10:47 -0700)
committerBob Halley <halley@dnspython.org>
Sun, 12 Apr 2026 17:47:20 +0000 (10:47 -0700)
tests/test_dnssec.py

index 77bd4fefd78bd7fd69d76bcfa2e0ebd9cd8455cd..b19950345bf188fada65ceea6512379373973bb0 100644 (file)
@@ -1246,11 +1246,12 @@ class DNSSECMakeDSTestCase(unittest.TestCase):
             "digest length inconsistent with digest type": ["0 0 0 0000"],
             "Odd-length string": ["0 0 0 0", "0 0 0 000"],
         }
-        for msg, records in test_records.items():
+        for _, records in test_records.items():
             for record in records:
                 with self.assertRaises(dns.exception.SyntaxError) as cm:
                     dns.rdata.from_text(dns.rdataclass.IN, dns.rdatatype.CDS, record)
-                self.assertEqual(msg, str(cm.exception))
+                # we don't test the message because it varies between pre=3.15 and 3.15
+                #self.assertEqual(msg, str(cm.exception))
 
     def testMakeCDS(self):  # type: () -> None
         name = dns.name.from_text("example.com")