[Python-checkins] cpython: Fix test_ssl.test_refcycle()
victor.stinner
python-checkins at python.org
Mon Mar 21 12:30:22 EDT 2016
https://hg.python.org/cpython/rev/a97d317dec85
changeset: 100638:a97d317dec85
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon Mar 21 17:26:04 2016 +0100
summary:
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.
files:
Lib/test/test_ssl.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -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
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list