(self)
| 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 = [] |
nothing calls this directly
no test coverage detected