summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ssl.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-21 16:26:04 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-21 16:26:04 (GMT)
commite0b75b7e87a385ca8b125e35e7c558626811ca99 (patch)
treea1bdb9d7ede87cca0f01ddf8378d65dd1f7f43f3 /Lib/test/test_ssl.py
parent19a8e844e455a26419f35bd4b57d4a7d19b61b69 (diff)
downloadcpython-e0b75b7e87a385ca8b125e35e7c558626811ca99.zip
cpython-e0b75b7e87a385ca8b125e35e7c558626811ca99.tar.gz
cpython-e0b75b7e87a385ca8b125e35e7c558626811ca99.tar.bz2
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.
Diffstat (limited to 'Lib/test/test_ssl.py')
-rw-r--r--Lib/test/test_ssl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index 9a48483..e0c31a8 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