]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
improve coverage
authorBob Halley <halley@dnspython.org>
Fri, 19 Jun 2020 18:21:18 +0000 (11:21 -0700)
committerBob Halley <halley@dnspython.org>
Fri, 19 Jun 2020 18:21:18 +0000 (11:21 -0700)
dns/dnssec.py

index 598e486934db6b64d300e53de1821cf1e2916c64..77c02540f1f5ddd069e920a00a4d34559e00896a 100644 (file)
@@ -556,7 +556,8 @@ def nsec3_hash(domain, salt, iterations, algorithm):
 
 
 def _need_pyca(*args, **kwargs):
-    raise ImportError("DNSSEC validation requires python cryptography")
+    raise ImportError("DNSSEC validation requires " +
+                      "python cryptography")  # pragma: no cover
 
 
 try:
@@ -570,7 +571,7 @@ 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