mirror of
https://github.com/python/cpython.git
synced 2025-10-03 21:55:41 +00:00
Issue #8629: Disable some test_ssl tests, since they give different
results with OpenSSL 1.0.0 and higher.
This commit is contained in:
parent
a8538a504f
commit
1222669b44
2 changed files with 16 additions and 5 deletions
|
@ -716,7 +716,7 @@ else:
|
||||||
raise
|
raise
|
||||||
else:
|
else:
|
||||||
if not expect_success:
|
if not expect_success:
|
||||||
self.fail(
|
raise AssertionError(
|
||||||
"Client protocol %s succeeded with server protocol %s!"
|
"Client protocol %s succeeded with server protocol %s!"
|
||||||
% (ssl.get_protocol_name(client_protocol),
|
% (ssl.get_protocol_name(client_protocol),
|
||||||
ssl.get_protocol_name(server_protocol)))
|
ssl.get_protocol_name(server_protocol)))
|
||||||
|
@ -832,7 +832,9 @@ else:
|
||||||
def test_protocol_sslv2(self):
|
def test_protocol_sslv2(self):
|
||||||
"""Connecting to an SSLv2 server with various client options"""
|
"""Connecting to an SSLv2 server with various client options"""
|
||||||
if test_support.verbose:
|
if test_support.verbose:
|
||||||
sys.stdout.write("\n")
|
sys.stdout.write("\ntest_protocol_sslv2 disabled, "
|
||||||
|
"as it fails on OpenSSL 1.0.0+")
|
||||||
|
return
|
||||||
try_protocol_combo(ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv2, True)
|
try_protocol_combo(ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv2, True)
|
||||||
try_protocol_combo(ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv2, True, ssl.CERT_OPTIONAL)
|
try_protocol_combo(ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv2, True, ssl.CERT_OPTIONAL)
|
||||||
try_protocol_combo(ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv2, True, ssl.CERT_REQUIRED)
|
try_protocol_combo(ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv2, True, ssl.CERT_REQUIRED)
|
||||||
|
@ -843,7 +845,9 @@ else:
|
||||||
def test_protocol_sslv23(self):
|
def test_protocol_sslv23(self):
|
||||||
"""Connecting to an SSLv23 server with various client options"""
|
"""Connecting to an SSLv23 server with various client options"""
|
||||||
if test_support.verbose:
|
if test_support.verbose:
|
||||||
sys.stdout.write("\n")
|
sys.stdout.write("\ntest_protocol_sslv23 disabled, "
|
||||||
|
"as it fails on OpenSSL 1.0.0+")
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
try_protocol_combo(ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_SSLv2, True)
|
try_protocol_combo(ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_SSLv2, True)
|
||||||
except (ssl.SSLError, socket.error), x:
|
except (ssl.SSLError, socket.error), x:
|
||||||
|
@ -867,7 +871,9 @@ else:
|
||||||
def test_protocol_sslv3(self):
|
def test_protocol_sslv3(self):
|
||||||
"""Connecting to an SSLv3 server with various client options"""
|
"""Connecting to an SSLv3 server with various client options"""
|
||||||
if test_support.verbose:
|
if test_support.verbose:
|
||||||
sys.stdout.write("\n")
|
sys.stdout.write("\ntest_protocol_sslv3 disabled, "
|
||||||
|
"as it fails on OpenSSL 1.0.0+")
|
||||||
|
return
|
||||||
try_protocol_combo(ssl.PROTOCOL_SSLv3, ssl.PROTOCOL_SSLv3, True)
|
try_protocol_combo(ssl.PROTOCOL_SSLv3, ssl.PROTOCOL_SSLv3, True)
|
||||||
try_protocol_combo(ssl.PROTOCOL_SSLv3, ssl.PROTOCOL_SSLv3, True, ssl.CERT_OPTIONAL)
|
try_protocol_combo(ssl.PROTOCOL_SSLv3, ssl.PROTOCOL_SSLv3, True, ssl.CERT_OPTIONAL)
|
||||||
try_protocol_combo(ssl.PROTOCOL_SSLv3, ssl.PROTOCOL_SSLv3, True, ssl.CERT_REQUIRED)
|
try_protocol_combo(ssl.PROTOCOL_SSLv3, ssl.PROTOCOL_SSLv3, True, ssl.CERT_REQUIRED)
|
||||||
|
@ -878,7 +884,9 @@ else:
|
||||||
def test_protocol_tlsv1(self):
|
def test_protocol_tlsv1(self):
|
||||||
"""Connecting to a TLSv1 server with various client options"""
|
"""Connecting to a TLSv1 server with various client options"""
|
||||||
if test_support.verbose:
|
if test_support.verbose:
|
||||||
sys.stdout.write("\n")
|
sys.stdout.write("\ntest_protocol_tlsv1 disabled, "
|
||||||
|
"as it fails on OpenSSL 1.0.0+")
|
||||||
|
return
|
||||||
try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, True)
|
try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, True)
|
||||||
try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, True, ssl.CERT_OPTIONAL)
|
try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, True, ssl.CERT_OPTIONAL)
|
||||||
try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, True, ssl.CERT_REQUIRED)
|
try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, True, ssl.CERT_REQUIRED)
|
||||||
|
|
|
@ -164,6 +164,9 @@ Build
|
||||||
Tests
|
Tests
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Issue #8629: Disable some test_ssl tests, since they give different
|
||||||
|
results with OpenSSL 1.0.0 and higher.
|
||||||
|
|
||||||
- Issue #8576: Remove use of find_unused_port() in test_smtplib and
|
- Issue #8576: Remove use of find_unused_port() in test_smtplib and
|
||||||
test_multiprocessing. Patch by Paul Moore.
|
test_multiprocessing. Patch by Paul Moore.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue