Author: Ronan Lamy <[email protected]>
Branch: 
Changeset: r88452:5625ca7b74d8
Date: 2016-11-17 18:47 +0000
http://bitbucket.org/pypy/pypy/changeset/5625ca7b74d8/

Log:    fix _ssl test_ztranslation

diff --git a/pypy/module/_ssl/test/test_ssl.py 
b/pypy/module/_ssl/test/test_ssl.py
--- a/pypy/module/_ssl/test/test_ssl.py
+++ b/pypy/module/_ssl/test/test_ssl.py
@@ -182,6 +182,12 @@
             return s
             """)
 
+    def teardown_method(self, method):
+        # pytest may keep some objects alive.
+        # So do some clean-up now without waiting for them to die
+        from ..interp_ssl import SOCKET_STORAGE
+        SOCKET_STORAGE._dict.clear()
+
     def test_connect(self):
         import socket, gc
         ss = socket.ssl(self.s)
@@ -484,7 +490,7 @@
             c = _socket.socket()
             c.connect(s.getsockname())
             c.setblocking(False)
-            
+
             c = ctx._wrap_socket(c, False)
             try:
                 exc = raises(_ssl.SSLWantReadError, c.do_handshake)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to