https://github.com/python/cpython/commit/fdf0132e35ebddd1ca3f366c2359fe3dd297e070
commit: fdf0132e35ebddd1ca3f366c2359fe3dd297e070
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-06-11T16:42:23+01:00
summary:

[3.15] gh-101100: Fix Sphinx nitpick in `unittest.mock.rst` (GH-151302) 
(#151355)

(cherry picked from commit b18168cb32d545ed976b760983478cbd5dde5bdf)

Co-authored-by: Cody Maloney <[email protected]>

files:
M Doc/library/unittest.mock.rst
M Doc/tools/.nitignore

diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index 2ff1015af7a86e0..6ba1b87ea942a90 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -2223,7 +2223,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 31173134dd5019f..aa08f7acb99197a 100644
--- a/Doc/tools/.nitignore
+++ b/Doc/tools/.nitignore
@@ -29,7 +29,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

_______________________________________________
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