summaryrefslogtreecommitdiffhomepage
path: root/tests/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/util.py')
-rw-r--r--tests/util.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/util.py b/tests/util.py
index 4bf73949..542a0671 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -171,3 +171,7 @@ def sha1_signing_unsupported():
return False
except UnsupportedAlgorithm as e:
return e._reason is _Reasons.UNSUPPORTED_HASH
+
+requires_sha1_signing = unittest.skipIf(
+ sha1_signing_unsupported(), "SHA-1 signing not supported"
+)