Commit 93e4352a authored by Jason Madden's avatar Jason Madden

Merge pull request #797 from czarkoff/openssl-check

Don't run 'test_openssl_version' when ssl is backed with LibreSSL
parents 993dd2e1 449a552a
......@@ -462,6 +462,13 @@ if sys.version_info[:2] >= (3, 5):
# 'test_socketserver.SocketServerTest.test_ForkingUDPServer',
# 'test_socketserver.SocketServerTest.test_ForkingUnixStreamServer'])
# LibreSSL reports OPENSSL_VERSION_INFO (2, 0, 0, 0, 0) regardless its version
from ssl import OPENSSL_VERSION
if OPENSSL_VERSION.startswith('LibreSSL'):
disabled_tests += [
'test_ssl.BasicSocketTests.test_openssl_version'
]
def disable_tests_in_source(source, name):
if name.startswith('./'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment