Browse Source

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.
Victor Stinner 10 years ago
parent
commit
e0b75b7e87
  1. 2
      Lib/test/test_ssl.py

2
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

Loading…
Cancel
Save