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

`hastattr` -> `hasattr`
This commit is contained in:
Árni Már Jónsson 2026-05-11 11:54:09 +00:00 committed by GitHub
parent 833dae7c1f
commit 4956d2be9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>` | | |
+---------------------------------------+--------------------------------+--------------+