MCPcopy Index your code
hub / github.com/python/cpython / test_dealloc_warn

Method test_dealloc_warn

Lib/test/test_ssl.py:774–780  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

772 self.assertIsNone(ss.get_channel_binding("tls-unique"))
773
774 def test_dealloc_warn(self):
775 ss = test_wrap_socket(socket.socket(socket.AF_INET))
776 r = repr(ss)
777 with self.assertWarns(ResourceWarning) as cm:
778 ss = None
779 support.gc_collect()
780 self.assertIn(r, str(cm.warning.args[0]))
781
782 def test_get_default_verify_paths(self):
783 paths = ssl.get_default_verify_paths()

Callers

nothing calls this directly

Calls 5

test_wrap_socketFunction · 0.85
strFunction · 0.85
socketMethod · 0.80
assertWarnsMethod · 0.80
assertInMethod · 0.80

Tested by

no test coverage detected