From: Victor Stinner Date: Mon, 21 Mar 2016 16:26:04 +0000 (+0100) Subject: Fix test_ssl.test_refcycle() X-Git-Tag: v3.6.0a1~417 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e0b75b7e87a385ca8b125e35e7c558626811ca99;p=thirdparty%2FPython%2Fcpython.git Fix test_ssl.test_refcycle() Issue #26590: support.check_warnings() stores warnins, but ResourceWarning now comes with a reference to the socket object which indirectly keeps the socket alive. --- diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 9a4848306786..e0c31a843e72 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -328,7 +328,7 @@ class BasicSocketTests(unittest.TestCase): wr = weakref.ref(ss) with support.check_warnings(("", ResourceWarning)): del ss - self.assertEqual(wr(), None) + self.assertEqual(wr(), None) def test_wrapped_unconnected(self): # Methods on an unconnected SSLSocket propagate the original