diff options
author | Sebastian Andrzej Siewior <sebastian@breakpoint.cc> | 2019-06-08 14:13:59 +0000 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2019-06-08 17:25:11 +0200 |
commit | 3ee65bd56e92f8f3c465947b6752d92d5986dc81 (patch) | |
tree | de7d89a96e738e603a3b5122f9b86dfe7dec5c1d /tests | |
parent | a02828969e542eba047bfdda7c6b8d9a43c204cc (diff) | |
download | m2crypto-3ee65bd56e92f8f3c465947b6752d92d5986dc81.tar.gz |
tests.test_rsa: Fix typo to match for proper exception
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_rsa.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_rsa.py b/tests/test_rsa.py index 7028b60..a1d0805 100644 --- a/tests/test_rsa.py +++ b/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. |