Author: Amaury Forgeot d'Arc <[email protected]>
Branch: stdlib-2.7.9
Changeset: r75521:7100871097ec
Date: 2015-01-25 21:50 +0100
http://bitbucket.org/pypy/pypy/changeset/7100871097ec/

Log:    Fix one deadlock in test_ssl

diff --git a/pypy/module/_ssl/interp_ssl.py b/pypy/module/_ssl/interp_ssl.py
--- a/pypy/module/_ssl/interp_ssl.py
+++ b/pypy/module/_ssl/interp_ssl.py
@@ -505,6 +505,8 @@
         the peer certificate, or None if no certificate was provided.
         This will return the certificate even if it wasn't validated.
         """
+        if not self.handshake_done:
+            raise oefmt(space.w_ValueError, "hanshake not done yet")
         if not self.peer_cert:
             return space.w_None
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to