diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-01-24 10:46:04 -0800 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-01-24 10:46:04 -0800 |
commit | 12532f67a03c1681f455211b00315765311a17a5 (patch) | |
tree | c6f82790339218517d82850772e6ffdc1c04d374 /tests/hazmat/backends/test_commoncrypto.py | |
parent | bb41bf4d798a6761889ea828f7d7f160f17b4132 (diff) | |
parent | 81744df9e4a109e33743825be6493cffe3026e09 (diff) | |
download | cryptography-12532f67a03c1681f455211b00315765311a17a5.tar.gz cryptography-12532f67a03c1681f455211b00315765311a17a5.tar.bz2 cryptography-12532f67a03c1681f455211b00315765311a17a5.zip |
Merge pull request #505 from alex/system-error
Switch to using our own InternalError, instead of SystemError
Diffstat (limited to 'tests/hazmat/backends/test_commoncrypto.py')
-rw-r--r-- | tests/hazmat/backends/test_commoncrypto.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/hazmat/backends/test_commoncrypto.py b/tests/hazmat/backends/test_commoncrypto.py index cfa332d0..7cc0f72f 100644 --- a/tests/hazmat/backends/test_commoncrypto.py +++ b/tests/hazmat/backends/test_commoncrypto.py @@ -14,7 +14,7 @@ import pytest from cryptography import utils -from cryptography.exceptions import UnsupportedAlgorithm +from cryptography.exceptions import UnsupportedAlgorithm, InternalError from cryptography.hazmat.bindings.commoncrypto.binding import Binding from cryptography.hazmat.primitives import interfaces from cryptography.hazmat.primitives.ciphers.algorithms import AES @@ -49,10 +49,10 @@ class TestCommonCrypto(object): with pytest.raises(ValueError): backend._check_response(backend._lib.kCCAlignmentError) - with pytest.raises(SystemError): + with pytest.raises(InternalError): backend._check_response(backend._lib.kCCMemoryFailure) - with pytest.raises(SystemError): + with pytest.raises(InternalError): backend._check_response(backend._lib.kCCDecodeError) def test_nonexistent_aead_cipher(self): |