[pypy-commit] pypy py3.3: Avoid deadlock in test_ssl when the function is missing

amauryfa noreply at buildbot.pypy.org
Thu Oct 9 23:05:59 CEST 2014


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3.3
Changeset: r73873:3afee8df1893
Date: 2014-10-09 23:04 +0200
http://bitbucket.org/pypy/pypy/changeset/3afee8df1893/

Log:	Avoid deadlock in test_ssl when the function is missing

diff --git a/lib-python/3/test/test_ssl.py b/lib-python/3/test/test_ssl.py
--- a/lib-python/3/test/test_ssl.py
+++ b/lib-python/3/test/test_ssl.py
@@ -1064,7 +1064,8 @@
                     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, ConnectionResetError) as e:
+                except (ssl.SSLError, ConnectionResetError,
+                        AttributeError) 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.


More information about the pypy-commit mailing list