changeset: 100638:a97d317dec85 user: Victor Stinner date: Mon Mar 21 17:26:04 2016 +0100 files: Lib/test/test_ssl.py description: 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 -r 46329eec5515 -r a97d317dec85 Lib/test/test_ssl.py --- a/Lib/test/test_ssl.py Mon Mar 21 16:36:48 2016 +0100 +++ b/Lib/test/test_ssl.py Mon Mar 21 17:26:04 2016 +0100 @@ -328,7 +328,7 @@ 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