Message183388
| Author |
nadeem.vawda |
| Recipients |
ezio.melotti, giampaolo.rodola, janssen, nadeem.vawda, pitrou |
| Date |
2013年03月03日.16:58:23 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1362329904.01.0.79862090388.issue13898@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This change fixes the problem (and doesn't break anything else that I can see):
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -979,7 +979,7 @@
self.sslconn = self.server.context.wrap_socket(
self.sock, server_side=True)
self.server.selected_protocols.append(self.sslconn.selected_npn_protocol())
- except ssl.SSLError as e:
+ except (ssl.SSLError, ConnectionResetError) as e:
# XXX Various errors can have happened here, for example
# a mismatching protocol version, an invalid certificate,
# or a low-level bug. This should be made more discriminating.
Does that look reasonable? |
|