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

Method test_refcycle_keylog_filename

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

Source from the content-addressed store, hash-verified

1859 @support.cpython_only
1860 @requires_keylog_setter
1861 def test_refcycle_keylog_filename(self):
1862 # See https://github.com/python/cpython/issues/142516.
1863 self.addCleanup(os_helper.unlink, os_helper.TESTFN)
1864 ctx = make_test_context()
1865 class KeylogFilename(str): ...
1866 ctx.keylog_filename = KeylogFilename(os_helper.TESTFN)
1867 ctx.keylog_filename._ = ctx
1868
1869 @support.cpython_only
1870 @unittest.skipUnless(ssl.HAS_PSK, 'requires TLS-PSK')

Callers

nothing calls this directly

Calls 3

make_test_contextFunction · 0.85
KeylogFilenameClass · 0.85
addCleanupMethod · 0.80

Tested by

no test coverage detected