From: Árni Már Jónsson Date: Mon, 11 May 2026 11:54:09 +0000 (+0000) Subject: gh-149663: fix typo in `unittest` docs (#149670) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4956d2be9d5e555f2cf64faed9ef39e6a797c360;p=thirdparty%2FPython%2Fcpython.git gh-149663: fix typo in `unittest` docs (#149670) `hastattr` -> `hasattr` --- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index c54f3e2792c3..ff619f979233 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -1262,10 +1262,10 @@ Test cases | :meth:`assertNotEndsWith(a, b) | ``not a.endswith(b)`` | 3.14 | | ` | | | +---------------------------------------+--------------------------------+--------------+ - | :meth:`assertHasAttr(a, b) | ``hastattr(a, b)`` | 3.14 | + | :meth:`assertHasAttr(a, b) | ``hasattr(a, b)`` | 3.14 | | ` | | | +---------------------------------------+--------------------------------+--------------+ - | :meth:`assertNotHasAttr(a, b) | ``not hastattr(a, b)`` | 3.14 | + | :meth:`assertNotHasAttr(a, b) | ``not hasattr(a, b)`` | 3.14 | | ` | | | +---------------------------------------+--------------------------------+--------------+