def _need_pyca(*args, **kwargs):
- raise ImportError("DNSSEC validation requires python cryptography")
+ raise ImportError("DNSSEC validation requires " +
+ "python cryptography") # pragma: no cover
try:
from cryptography.hazmat.primitives.asymmetric import ed25519
from cryptography.hazmat.primitives.asymmetric import ed448
from cryptography.hazmat.primitives.asymmetric import rsa
-except ImportError:
+except ImportError: # pragma: no cover
validate = _need_pyca
validate_rrsig = _need_pyca
_have_pyca = False