https://github.com/python/cpython/commit/745d6093a068b1ca0d2eaa15c67219ac20d93d89
commit: 745d6093a068b1ca0d2eaa15c67219ac20d93d89
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: sobolevn <[email protected]>
date: 2026-05-11T12:01:57Z
summary:

[3.14] gh-149663: fix typo in `unittest` docs (GH-149670) (#149673)

gh-149663: fix typo in `unittest` docs (GH-149670)

`hastattr` -> `hasattr`
(cherry picked from commit 4956d2be9d5e555f2cf64faed9ef39e6a797c360)

Co-authored-by: Árni Már Jónsson <[email protected]>

files:
M Doc/library/unittest.rst

diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index d12bd0744a4c92..977ae3efdd6c04 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -1237,10 +1237,10 @@ Test cases
    | :meth:`assertNotEndsWith(a, b)        | ``not a.endswith(b)``          | 
3.14         |
    | <TestCase.assertNotEndsWith>`         |                                |  
            |
    
+---------------------------------------+--------------------------------+--------------+
-   | :meth:`assertHasAttr(a, b)            | ``hastattr(a, b)``             | 
3.14         |
+   | :meth:`assertHasAttr(a, b)            | ``hasattr(a, b)``              | 
3.14         |
    | <TestCase.assertHasAttr>`             |                                |  
            |
    
+---------------------------------------+--------------------------------+--------------+
-   | :meth:`assertNotHasAttr(a, b)         | ``not hastattr(a, b)``         | 
3.14         |
+   | :meth:`assertNotHasAttr(a, b)         | ``not hasattr(a, b)``          | 
3.14         |
    | <TestCase.assertNotHasAttr>`          |                                |  
            |
    
+---------------------------------------+--------------------------------+--------------+
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to