Skip to content

Commit 4956d2b

Browse files
authored
gh-149663: fix typo in unittest docs (#149670)
`hastattr` -> `hasattr`
1 parent 833dae7 commit 4956d2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/unittest.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,10 +1262,10 @@ Test cases
12621262
| :meth:`assertNotEndsWith(a, b) | ``not a.endswith(b)`` | 3.14 |
12631263
| <TestCase.assertNotEndsWith>` | | |
12641264
+---------------------------------------+--------------------------------+--------------+
1265-
| :meth:`assertHasAttr(a, b) | ``hastattr(a, b)`` | 3.14 |
1265+
| :meth:`assertHasAttr(a, b) | ``hasattr(a, b)`` | 3.14 |
12661266
| <TestCase.assertHasAttr>` | | |
12671267
+---------------------------------------+--------------------------------+--------------+
1268-
| :meth:`assertNotHasAttr(a, b) | ``not hastattr(a, b)`` | 3.14 |
1268+
| :meth:`assertNotHasAttr(a, b) | ``not hasattr(a, b)`` | 3.14 |
12691269
| <TestCase.assertNotHasAttr>` | | |
12701270
+---------------------------------------+--------------------------------+--------------+
12711271

0 commit comments

Comments
 (0)