summaryrefslogtreecommitdiff
path: root/OpenSSL/test/test_ssl.py
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSSL/test/test_ssl.py')
-rw-r--r--OpenSSL/test/test_ssl.py2
1 files changed, 1 insertions, 1 deletions
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