diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-04-19 09:34:56 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-04-20 16:53:04 -0500 |
commit | 8ab7a360330daa195ea1c0cf70d606dc7dce88c8 (patch) | |
tree | 4800e1b4b3c4d03bc0dfb7d4560e5d5576262a2f /tests/hazmat | |
parent | 73dd4d5bd713f80fc0ffe04921d61d993437d458 (diff) | |
download | cryptography-8ab7a360330daa195ea1c0cf70d606dc7dce88c8.tar.gz cryptography-8ab7a360330daa195ea1c0cf70d606dc7dce88c8.tar.bz2 cryptography-8ab7a360330daa195ea1c0cf70d606dc7dce88c8.zip |
remove InvalidDecryption and replace with ValueError
Diffstat (limited to 'tests/hazmat')
-rw-r--r-- | tests/hazmat/primitives/test_rsa.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hazmat/primitives/test_rsa.py b/tests/hazmat/primitives/test_rsa.py index 74a0c111..69fd2933 100644 --- a/tests/hazmat/primitives/test_rsa.py +++ b/tests/hazmat/primitives/test_rsa.py @@ -1271,7 +1271,7 @@ class TestRSADecryption(object): key_size=512, backend=backend ) - with pytest.raises(exceptions.InvalidDecryption): + with pytest.raises(ValueError): private_key.decrypt( b"\x00" * 64, padding.PKCS1v15(), @@ -1301,7 +1301,7 @@ class TestRSADecryption(object): b"50b4c14136bd198c2f3c3ed243fce036e168d56517984a263cd66492b80804f1" b"69d210f2b9bdfb48b12f9ea05009c77da257cc600ccefe3a6283789d8ea0" ) - with pytest.raises(exceptions.InvalidDecryption): + with pytest.raises(ValueError): private_key.decrypt( ct, padding.PKCS1v15(), |