Closed
Labels
docsDocumentation in the Doc dir
Description
Documentation
Just noticed that the documentation for assertHasAttr(a, b) and assertNotHasAttr(a, b) has as a "checks that" with hastattr instead of (I assume) hasattr
cpython/Doc/library/unittest.rst
Line 1265 in 53c3dd9
| | :meth:`assertHasAttr(a, b) | ``hastattr(a, b)`` | 3.14 | |
Linked PRs
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dir
Projects
- StatusShow more project fieldsTodo
Activity
hugovk commentedon May 11, 2026
Thanks for the report, would you like to open a PR to fix it?
Tip for next time, typo fixes don't need an issue: https://devguide.python.org/getting-started/pull-request-lifecycle/#typo-fixes
Thanks!
gh-149663: fix typo in `unittest` docs (#149670)
[3.14] gh-149663: fix typo in `unittest` docs (GH-149670) (#149673)
[3.15] gh-149663: fix typo in `unittest` docs (GH-149670) (#149672)