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
ad246bfb
Commit
ad246bfb
authored
Mar 03, 2013
by
Nadeem Vawda
Browse files
Options
Browse Files
Download
Plain Diff
Issue #13898: test_ssl no longer prints a spurious stack trace on Ubuntu.
parents
255bf5b9
7b39b9b5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
Lib/test/test_ssl.py
Lib/test/test_ssl.py
+5
-1
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_ssl.py
View file @
ad246bfb
...
@@ -942,7 +942,11 @@ else:
...
@@ -942,7 +942,11 @@ else:
self
.
sslconn
=
self
.
server
.
context
.
wrap_socket
(
self
.
sslconn
=
self
.
server
.
context
.
wrap_socket
(
self
.
sock
,
server_side
=
True
)
self
.
sock
,
server_side
=
True
)
self
.
server
.
selected_protocols
.
append
(
self
.
sslconn
.
selected_npn_protocol
())
self
.
server
.
selected_protocols
.
append
(
self
.
sslconn
.
selected_npn_protocol
())
except
ssl
.
SSLError
as
e
:
except
(
ssl
.
SSLError
,
ConnectionResetError
)
as
e
:
# We treat ConnectionResetError as though it were an
# SSLError - OpenSSL on Ubuntu abruptly closes the
# connection when asked to use an unsupported protocol.
#
# XXX Various errors can have happened here, for example
# XXX Various errors can have happened here, for example
# a mismatching protocol version, an invalid certificate,
# a mismatching protocol version, an invalid certificate,
# or a low-level bug. This should be made more discriminating.
# or a low-level bug. This should be made more discriminating.
...
...
Misc/NEWS
View file @
ad246bfb
...
@@ -635,6 +635,8 @@ Library
...
@@ -635,6 +635,8 @@ Library
Tests
Tests
-----
-----
- Issue #13898: test_ssl no longer prints a spurious stack trace on Ubuntu.
- Issue #17249: convert a test in test_capi to use unittest and reap threads.
- Issue #17249: convert a test in test_capi to use unittest and reap threads.
- Issue #17041: Fix testing when Python is configured with the
- Issue #17041: Fix testing when Python is configured with the
...
...
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