diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-02 16:57:10 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-02 16:57:10 -0700 |
commit | 3949f1171084c2e1cfe43f638857ea0e0f8f246d (patch) | |
tree | 5699ddce355497cbb6890e9c55013d64e7cfc9d8 /tests | |
parent | 738ac5a8e986dbba472232711be7fae804a01576 (diff) | |
download | cryptography-3949f1171084c2e1cfe43f638857ea0e0f8f246d.tar.gz cryptography-3949f1171084c2e1cfe43f638857ea0e0f8f246d.tar.bz2 cryptography-3949f1171084c2e1cfe43f638857ea0e0f8f246d.zip |
Changed excpetion name based on feedback from dreid
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() |