aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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(),