summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-21 17:26:04 +0100
committerVictor Stinner <victor.stinner@gmail.com>2016-03-21 17:26:04 +0100
commite0b75b7e87a385ca8b125e35e7c558626811ca99 (patch)
treea1bdb9d7ede87cca0f01ddf8378d65dd1f7f43f3
parent19a8e844e455a26419f35bd4b57d4a7d19b61b69 (diff)
downloadcpython-git-e0b75b7e87a385ca8b125e35e7c558626811ca99.tar.gz
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.
-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 9a48483067..e0c31a843e 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