(self)
| 2286 | 'trace function introduces __locals__ unexpectedly') |
| 2287 | @requires_docstrings |
| 2288 | def test_buggy_dir(self): |
| 2289 | class M(type): |
| 2290 | def __dir__(cls): |
| 2291 | return ['__class__', '__name__', 'missing', 'here'] |
| 2292 | class C(metaclass=M): |
| 2293 | here = 'present!' |
| 2294 | output = StringIO() |
| 2295 | helper = pydoc.Helper(output=output) |
| 2296 | helper(C) |
| 2297 | expected_text = expected_missingattribute_pattern % __name__ |
| 2298 | result = output.getvalue().strip() |
| 2299 | self.assertEqual(expected_text, result) |
| 2300 | |
| 2301 | def test_resolve_false(self): |
| 2302 | # Issue #23008: pydoc enum.{,Int}Enum failed |
nothing calls this directly
no test coverage detected