]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-92417: `unittest.mock` docs: remove references to Python <2.6 (GH-92539...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 10 May 2022 09:28:20 +0000 (02:28 -0700)
committerGitHub <noreply@github.com>
Tue, 10 May 2022 09:28:20 +0000 (02:28 -0700)
(cherry picked from commit 6823ba4a9ee1a88102e835c5a278904f35588675)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
Doc/library/unittest.mock-examples.rst
Doc/library/unittest.mock.rst

index 24a18c684846867312f9e38a49533e8a93676344..054efa81266326bb00da9302643bb1d540c0f15a 100644 (file)
@@ -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``::
index a3700ac07f1c1af4656e79642a95226d017f6d09..acc0d67541ae826123b7ecc04eb469332eee5466 100644 (file)
@@ -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``.