Commit 449a552a authored by Dmitrij D. Czarkoff's avatar Dmitrij D. Czarkoff

Don't run 'test_openssl_version' when ssl is backed with LibreSSL

On LibreSSL OPENSSL_VERSION_INFO is always (2, 0, 0, 0, 0), so the test fails
for all LibreSSL versions after 2.0.
parent 993dd2e1
......@@ -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