diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-21 16:26:04 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-21 16:26:04 (GMT) |
commit | e0b75b7e87a385ca8b125e35e7c558626811ca99 (patch) | |
tree | a1bdb9d7ede87cca0f01ddf8378d65dd1f7f43f3 /Lib/test/test_ssl.py | |
parent | 19a8e844e455a26419f35bd4b57d4a7d19b61b69 (diff) | |
download | cpython-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.py | 2 |
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 |