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.
This commit is contained in:
Victor Stinner 2016-03-21 17:26:04 +01:00
parent 19a8e844e4
commit e0b75b7e87
1 changed files with 1 additions and 1 deletions

View File

@ -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