diff --git a/tests/test_pkcs1.py b/tests/test_pkcs1.py index b79eab9..7f9572c 100644 --- a/tests/test_pkcs1.py +++ b/tests/test_pkcs1.py @@ -148,7 +148,7 @@ def test_sign_different_key(self): message = b"je moeder" signature = pkcs1.sign(message, self.priv, "SHA-256") - self.assertRaises(pkcs1.VerificationError, pkcs1.verify, message, signature, otherpub) + self.assertRaises((pkcs1.VerificationError, OverflowError), pkcs1.verify, message, signature, otherpub) def test_multiple_signings(self): """Signing the same message twice should return the same signatures."""