Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
22a99205
Commit
22a99205
authored
May 06, 2010
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #8629: Disable some test_ssl tests, since they give different
results with OpenSSL 1.0.0 and higher.
parent
8976164d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
Lib/test/test_ssl.py
Lib/test/test_ssl.py
+13
-5
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_ssl.py
View file @
22a99205
...
...
@@ -711,7 +711,7 @@ else:
raise
else
:
if
not
expect_success
:
self
.
fail
(
raise
AssertionError
(
"Client protocol %s succeeded with server protocol %s!"
%
(
ssl
.
get_protocol_name
(
client_protocol
),
ssl
.
get_protocol_name
(
server_protocol
)))
...
...
@@ -827,7 +827,9 @@ else:
def
test_protocol_sslv2
(
self
):
"""Connecting to an SSLv2 server with various client options"""
if
support
.
verbose
:
sys
.
stdout
.
write
(
"
\
n
"
)
sys
.
stdout
.
write
(
"
\
n
test_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
,
ssl
.
CERT_OPTIONAL
)
try_protocol_combo
(
ssl
.
PROTOCOL_SSLv2
,
ssl
.
PROTOCOL_SSLv2
,
True
,
ssl
.
CERT_REQUIRED
)
...
...
@@ -838,7 +840,9 @@ else:
def
test_protocol_sslv23
(
self
):
"""Connecting to an SSLv23 server with various client options"""
if
support
.
verbose
:
sys
.
stdout
.
write
(
"
\
n
"
)
sys
.
stdout
.
write
(
"
\
n
test_protocol_sslv23 disabled, "
"as it fails on OpenSSL 1.0.0+"
)
return
try
:
try_protocol_combo
(
ssl
.
PROTOCOL_SSLv23
,
ssl
.
PROTOCOL_SSLv2
,
True
)
except
(
ssl
.
SSLError
,
socket
.
error
)
as
x
:
...
...
@@ -862,7 +866,9 @@ else:
def
test_protocol_sslv3
(
self
):
"""Connecting to an SSLv3 server with various client options"""
if
support
.
verbose
:
sys
.
stdout
.
write
(
"
\
n
"
)
sys
.
stdout
.
write
(
"
\
n
test_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
,
ssl
.
CERT_OPTIONAL
)
try_protocol_combo
(
ssl
.
PROTOCOL_SSLv3
,
ssl
.
PROTOCOL_SSLv3
,
True
,
ssl
.
CERT_REQUIRED
)
...
...
@@ -873,7 +879,9 @@ else:
def
test_protocol_tlsv1
(
self
):
"""Connecting to a TLSv1 server with various client options"""
if
support
.
verbose
:
sys
.
stdout
.
write
(
"
\
n
"
)
sys
.
stdout
.
write
(
"
\
n
test_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
,
ssl
.
CERT_OPTIONAL
)
try_protocol_combo
(
ssl
.
PROTOCOL_TLSv1
,
ssl
.
PROTOCOL_TLSv1
,
True
,
ssl
.
CERT_REQUIRED
)
...
...
Misc/NEWS
View file @
22a99205
...
...
@@ -160,6 +160,9 @@ Build
Tests
-----
- Issue #8629: Disable some test_ssl tests, since they give different
results with OpenSSL 1.0.0 and higher.
- Issue #8533: regrtest uses backslashreplace error handler for stdout to avoid
UnicodeEncodeError (write non-ASCII character to stdout using ASCII encoding)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment