diff options
Diffstat (limited to 'OpenSSL/test')
-rw-r--r-- | OpenSSL/test/test_crypto.py | 2 | ||||
-rw-r--r-- | OpenSSL/test/test_ssl.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/OpenSSL/test/test_crypto.py b/OpenSSL/test/test_crypto.py index 62b9429..16799ef 100644 --- a/OpenSSL/test/test_crypto.py +++ b/OpenSSL/test/test_crypto.py @@ -2603,7 +2603,7 @@ class CRLTests(TestCase): def test_export_invalid(self): """ If :py:obj:`CRL.export` is used with an uninitialized :py:obj:`X509` - instance, :py:obj:`ValueError` is raised. + instance, :py:obj:`OpenSSL.crypto.Error` is raised. """ crl = CRL() self.assertRaises(Error, crl.export, X509(), PKey()) diff --git a/OpenSSL/test/test_ssl.py b/OpenSSL/test/test_ssl.py index 721c1c0..3e4e3da 100644 --- a/OpenSSL/test/test_ssl.py +++ b/OpenSSL/test/test_ssl.py @@ -313,7 +313,7 @@ class ContextTests(TestCase, _LoopbackMixin): try: Context(SSLv2_METHOD) - except ValueError: + except (Error, ValueError): # Some versions of OpenSSL have SSLv2, some don't. # Difficult to say in advance. pass |