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

Method test_instance_docs

Lib/test/test_contextlib.py:402–406  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

400
401 @support.requires_docstrings
402 def test_instance_docs(self):
403 # Issue 19330: ensure context manager instances have good docstrings
404 cm_docstring = closing.__doc__
405 obj = closing(None)
406 self.assertEqual(obj.__doc__, cm_docstring)
407
408 def test_closing(self):
409 state = []

Callers

nothing calls this directly

Calls 2

closingClass · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected