[Python-checkins] [3.11] gh-92417: `unittest.mock` docs: remove references to Python <2.6 (GH-92539) (GH-92606)
miss-islington
webhook-mailer at python.org
Tue May 10 05:28:39 EDT 2022
https://github.com/python/cpython/commit/c84f547d1db44a0f0ee238140552de014e1f7b43
commit: c84f547d1db44a0f0ee238140552de014e1f7b43
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-05-10T02:28:20-07:00
summary:
[3.11] gh-92417: `unittest.mock` docs: remove references to Python <2.6 (GH-92539) (GH-92606)
(cherry picked from commit 6823ba4a9ee1a88102e835c5a278904f35588675)
Co-authored-by: Alex Waygood <Alex.Waygood at Gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
files:
M Doc/library/unittest.mock-examples.rst
M Doc/library/unittest.mock.rst
diff --git a/Doc/library/unittest.mock-examples.rst b/Doc/library/unittest.mock-examples.rst
index 24a18c6848468..054efa8126632 100644
--- a/Doc/library/unittest.mock-examples.rst
+++ b/Doc/library/unittest.mock-examples.rst
@@ -660,7 +660,7 @@ Applying the same patch to every test method
If you want several patches in place for multiple test methods the obvious way
is to apply the patch decorators to every method. This can feel like unnecessary
-repetition. For Python 2.6 or more recent you can use :func:`patch` (in all its
+repetition. Instead, you can use :func:`patch` (in all its
various forms) as a class decorator. This applies the patches to all test
methods on the class. A test method is identified by methods whose names start
with ``test``::
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index a3700ac07f1c1..acc0d67541ae8 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -2381,7 +2381,7 @@ FILTER_DIR
.. data:: FILTER_DIR
:data:`FILTER_DIR` is a module level variable that controls the way mock objects
-respond to :func:`dir` (only for Python 2.6 or more recent). The default is ``True``,
+respond to :func:`dir`. The default is ``True``,
which uses the filtering described below, to only show useful members. If you
dislike this filtering, or need to switch it off for diagnostic purposes, then
set ``mock.FILTER_DIR = False``.
More information about the Python-checkins
mailing list