diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hazmat/primitives/test_block.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/hazmat/primitives/test_block.py b/tests/hazmat/primitives/test_block.py index 2c0be1b5..dd9c54c9 100644 --- a/tests/hazmat/primitives/test_block.py +++ b/tests/hazmat/primitives/test_block.py @@ -17,7 +17,7 @@ import binascii import pytest -from cryptography.exceptions import NoSuchAlgorithm +from cryptography.exceptions import UnsupportedAlgorithm from cryptography.hazmat.primitives import interfaces from cryptography.hazmat.primitives.block import BlockCipher, ciphers, modes @@ -90,8 +90,8 @@ class TestBlockCipherContext(object): cipher = BlockCipher( object(), object(), backend ) - with pytest.raises(NoSuchAlgorithm): + with pytest.raises(UnsupportedAlgorithm): cipher.encryptor() - with pytest.raises(NoSuchAlgorithm): + with pytest.raises(UnsupportedAlgorithm): cipher.decryptor() |