Skip to content

Commit ef7c0b2

Browse files
committed
gh-101100: Fix Sphinx nitpick in unittest.mock.rst
Removes from `.nitignore`. GH-124106 fixed most the warnings but left this one unfixed. GH-113163 fixed many of the dunders referring to the general definitions but this case refers to implementing a mock. Match what `__eq__` and `__ne__` did a few lines before to refer to an implementing instance.
1 parent 871047d commit ef7c0b2

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

Doc/library/unittest.mock.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2223,7 +2223,7 @@ return something else::
22232223
>>> mock == 3
22242224
True
22252225

2226-
The return value of :meth:`MagicMock.__iter__` can be any iterable object and isn't
2226+
The return value of :meth:`!__iter__` can be any iterable object and isn't
22272227
required to be an iterator:
22282228

22292229
>>> mock = MagicMock()

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ Doc/library/test.rst
2929
Doc/library/tkinter.rst
3030
Doc/library/tkinter.scrolledtext.rst
3131
Doc/library/tkinter.ttk.rst
32-
Doc/library/unittest.mock.rst
3332
Doc/library/urllib.parse.rst
3433
Doc/library/urllib.request.rst
3534
Doc/library/wsgiref.rst

0 commit comments

Comments
 (0)