27 lines
988 B
Diff
27 lines
988 B
Diff
From 3ee65bd56e92f8f3c465947b6752d92d5986dc81 Mon Sep 17 00:00:00 2001
|
|
From: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
|
|
Date: Sat, 8 Jun 2019 14:13:59 +0000
|
|
Subject: [PATCH] tests.test_rsa: Fix typo to match for proper exception
|
|
|
|
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
|
|
---
|
|
M2Crypto-0.30.1/tests/test_rsa.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/M2Crypto-0.30.1/tests/test_rsa.py b/M2Crypto-0.30.1/tests/test_rsa.py
|
|
index 7028b608..a1d0805f 100644
|
|
--- a/M2Crypto-0.30.1/tests/test_rsa.py
|
|
+++ b/M2Crypto-0.30.1/tests/test_rsa.py
|
|
@@ -130,7 +130,7 @@ class RSATestCase(unittest.TestCase):
|
|
self.assertEqual(res, self.data)
|
|
|
|
# no_padding
|
|
- with six.assertRaisesRegex(self, TypeError, 'data too small'):
|
|
+ with six.assertRaisesRegex(self, RSA.RSAError, 'data too small'):
|
|
priv.public_encrypt(self.data, RSA.no_padding)
|
|
|
|
# Type-check the data to be encrypted.
|
|
--
|
|
GitLab
|
|
|