summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-07-08 16:49:07 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-07-08 16:49:07 (GMT)
commit7128f95bd27b34c82299d8572d4172bf0c8a13a3 (patch)
tree5d73969ecb7d13388554dacfb7a298c3b5fa3a89 /Lib/test
parent4468e55d4bd2a9ac4c6aeaffeb99653b7737ebd6 (diff)
parentb9ac25d1c394714f0565845b274e7eebb402f1e7 (diff)
downloadcpython-7128f95bd27b34c82299d8572d4172bf0c8a13a3.zip
cpython-7128f95bd27b34c82299d8572d4172bf0c8a13a3.tar.gz
cpython-7128f95bd27b34c82299d8572d4172bf0c8a13a3.tar.bz2
Issue #12440: When testing whether some bits in SSLContext.options can be
reset, check the version of the OpenSSL headers Python was compiled against, rather than the runtime version of the OpenSSL library.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_ssl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index 5193c15..fd1cd2d 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -60,7 +60,7 @@ def handle_error(prefix):
def can_clear_options():
# 0.9.8m or higher
- return ssl.OPENSSL_VERSION_INFO >= (0, 9, 8, 13, 15)
+ return ssl._OPENSSL_API_VERSION >= (0, 9, 8, 13, 15)
def no_sslv2_implies_sslv3_hello():
# 0.9.7h or higher