aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hazmat/primitives/utils.py')
-rw-r--r--tests/hazmat/primitives/utils.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/hazmat/primitives/utils.py b/tests/hazmat/primitives/utils.py
index 59326367..b8200123 100644
--- a/tests/hazmat/primitives/utils.py
+++ b/tests/hazmat/primitives/utils.py
@@ -47,10 +47,9 @@ def generate_encrypt_test(param_loader, path, file_names, cipher_factory,
def encrypt_test(backend, cipher_factory, mode_factory, params):
- if not backend.cipher_supported(
+ assert backend.cipher_supported(
cipher_factory(**params), mode_factory(**params)
- ):
- pytest.skip("cipher/mode combo is unsupported by this backend")
+ )
plaintext = params["plaintext"]
ciphertext = params["ciphertext"]