| 1 |
From: Bob Halley <[email protected]> |
| 2 |
Date: Sun, 12 Apr 2026 10:47:20 -0700 |
| 3 |
Subject: fix testInvalidDigestLengthCDS0 for 3.15 |
| 4 |
|
| 5 |
--- |
| 6 |
tests/test_dnssec.py | 5 +++-- |
| 7 |
1 file changed, 3 insertions(+), 2 deletions(-) |
| 8 |
|
| 9 |
diff --git a/tests/test_dnssec.py b/tests/test_dnssec.py |
| 10 |
index 117244b..f81f67c 100644 |
| 11 |
--- a/tests/test_dnssec.py |
| 12 |
+++ b/tests/test_dnssec.py |
| 13 |
@@ -1238,11 +1238,12 @@ class DNSSECMakeDSTestCase(unittest.TestCase): |
| 14 |
"digest length inconsistent with digest type": ["0 0 0 0000"], |
| 15 |
"Odd-length string": ["0 0 0 0", "0 0 0 000"], |
| 16 |
} |
| 17 |
- for msg, records in test_records.items(): |
| 18 |
+ for _, records in test_records.items(): |
| 19 |
for record in records: |
| 20 |
with self.assertRaises(dns.exception.SyntaxError) as cm: |
| 21 |
dns.rdata.from_text(dns.rdataclass.IN, dns.rdatatype.CDS, record) |
| 22 |
- self.assertEqual(msg, str(cm.exception)) |
| 23 |
+ # we don't test the message because it varies between pre=3.15 and 3.15 |
| 24 |
+ #self.assertEqual(msg, str(cm.exception)) |
| 25 |
|
| 26 |
def testMakeCDS(self): # type: () -> None |
| 27 |
name = dns.name.from_text("example.com") |