https://github.com/python/cpython/commit/4956d2be9d5e555f2cf64faed9ef39e6a797c360
commit: 4956d2be9d5e555f2cf64faed9ef39e6a797c360
branch: main
author: Árni Már Jónsson <[email protected]>
committer: sobolevn <[email protected]>
date: 2026-05-11T14:54:09+03:00
summary:

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

`hastattr` -> `hasattr`

files:
M Doc/library/unittest.rst

diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index c54f3e2792c388..ff619f97923325 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         |
    | <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