Commit 2be3de362e for bind

commit 2be3de362e7ba88a73c471ccae8ab94e800c147a
Author: Štěpán Balážik <stepan@isc.org>
Date:   Wed Nov 18 15:07:14 2026 +0100

    Remove the unused key helper from tests_findnoqname_mismatch.py

    The test has generated its key with PythonZoneKey since it moved into
    dnssec_py; _make_key() was never called.  vulture missed it only
    because other tests define and call a function of the same name, and
    the 9.18 backport of the nsec_wildcard_wrong_zone cleanup removes the
    last of those there.

    Assisted-by: Claude:claude-opus-5-5

diff --git a/bin/tests/system/dnssec_py/tests_findnoqname_mismatch.py b/bin/tests/system/dnssec_py/tests_findnoqname_mismatch.py
index 514a182ae7..5b08e8b5cf 100644
--- a/bin/tests/system/dnssec_py/tests_findnoqname_mismatch.py
+++ b/bin/tests/system/dnssec_py/tests_findnoqname_mismatch.py
@@ -15,10 +15,6 @@ serve it back, when the proof owner carries both NSEC and NSEC3 records in
 any wire order (#5985, #6369).
 """

-from cryptography.hazmat.primitives import serialization
-from cryptography.hazmat.primitives.asymmetric import ec
-
-import dns.dnssec
 import dns.name
 import dns.rdataclass
 import dns.rdatatype
@@ -45,24 +41,6 @@ RESOLVER = "10.53.0.9"
 pytestmark = [isctest.mark.with_ecdsa_deterministic, DNSSEC_PY_MARK]


-def _make_key():
-    private_key = ec.generate_private_key(ec.SECP256R1())
-    dnskey = dns.dnssec.make_dnskey(
-        private_key.public_key(),
-        algorithm="ECDSAP256SHA256",
-        flags=257,
-    )
-    private_pem = private_key.private_bytes(
-        encoding=serialization.Encoding.PEM,
-        format=serialization.PrivateFormat.PKCS8,
-        encryption_algorithm=serialization.NoEncryption(),
-    ).decode("ascii")
-    return {
-        "private_pem": private_pem,
-        "dnskey": dnskey.to_text(),
-    }
-
-
 def bootstrap():
     # for a static stub zones, NS name is the stub and NS IP is the target
     ans = Nameserver(NS9.name, NS9.num, NS4.ip, NS4.ip6)