aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-04-07 23:39:43 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-04-20 16:53:03 -0500
commit9a32ad6eed73674fecdd9c757a9842dc45c78fe4 (patch)
tree58d23648c0edbe717b77d589f356c2c83cc0d92f /tests
parentaf9a2cc7bc73129fcd807ac890be59dcc9672a4c (diff)
downloadcryptography-9a32ad6eed73674fecdd9c757a9842dc45c78fe4.tar.gz
cryptography-9a32ad6eed73674fecdd9c757a9842dc45c78fe4.tar.bz2
cryptography-9a32ad6eed73674fecdd9c757a9842dc45c78fe4.zip
test should check for the right exception
Diffstat (limited to 'tests')
-rw-r--r--tests/hazmat/primitives/test_rsa.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hazmat/primitives/test_rsa.py b/tests/hazmat/primitives/test_rsa.py
index 9c6d6f87..d8b25cbb 100644
--- a/tests/hazmat/primitives/test_rsa.py
+++ b/tests/hazmat/primitives/test_rsa.py
@@ -1330,7 +1330,7 @@ class TestRSADecryption(object):
key_size=512,
backend=backend
)
- with pytest.raises(exceptions.InternalError):
+ with pytest.raises(exceptions.InvalidDecryption):
private_key.decrypt(
b"\x00" * 64,
padding.PKCS1v15(),