Commit ad246bfb authored by Nadeem Vawda's avatar Nadeem Vawda

Issue #13898: test_ssl no longer prints a spurious stack trace on Ubuntu.

parents 255bf5b9 7b39b9b5
...@@ -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.
......
...@@ -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
......
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