From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 11 Jun 2026 15:39:04 +0000 (+0200) Subject: [3.14] gh-101100: Fix Sphinx nitpick in `unittest.mock.rst` (GH-151302) (#151356) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41f2d6f147b14b7b2ac912b31e9fcd9948507268;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-101100: Fix Sphinx nitpick in `unittest.mock.rst` (GH-151302) (#151356) (cherry picked from commit b18168cb32d545ed976b760983478cbd5dde5bdf) Co-authored-by: Cody Maloney --- diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index 549b04997886..3cd731899fea 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -2224,7 +2224,7 @@ return something else:: >>> mock == 3 True -The return value of :meth:`MagicMock.__iter__` can be any iterable object and isn't +The return value of :meth:`!__iter__` can be any iterable object and isn't required to be an iterator: >>> mock = MagicMock() diff --git a/Doc/tools/.nitignore b/Doc/tools/.nitignore index f93f2903534c..6134ffafa475 100644 --- a/Doc/tools/.nitignore +++ b/Doc/tools/.nitignore @@ -33,7 +33,6 @@ Doc/library/test.rst Doc/library/tkinter.rst Doc/library/tkinter.scrolledtext.rst Doc/library/tkinter.ttk.rst -Doc/library/unittest.mock.rst Doc/library/urllib.parse.rst Doc/library/urllib.request.rst Doc/library/wsgiref.rst