From 9a32ad6eed73674fecdd9c757a9842dc45c78fe4 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 7 Apr 2014 23:39:43 -0500 Subject: test should check for the right exception --- tests/hazmat/primitives/test_rsa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/hazmat/primitives/test_rsa.py') 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(), -- cgit v1.2.3