Skip to content

Commit 6823ba4

Browse files
authored
gh-92417: unittest.mock docs: remove references to Python <2.6 (GH-92539)
1 parent a0a825c commit 6823ba4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/library/unittest.mock-examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ Applying the same patch to every test method
660660

661661
If you want several patches in place for multiple test methods the obvious way
662662
is to apply the patch decorators to every method. This can feel like unnecessary
663-
repetition. For Python 2.6 or more recent you can use :func:`patch` (in all its
663+
repetition. Instead, you can use :func:`patch` (in all its
664664
various forms) as a class decorator. This applies the patches to all test
665665
methods on the class. A test method is identified by methods whose names start
666666
with ``test``::

Doc/library/unittest.mock.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2381,7 +2381,7 @@ FILTER_DIR
23812381
.. data:: FILTER_DIR
23822382

23832383
:data:`FILTER_DIR` is a module level variable that controls the way mock objects
2384-
respond to :func:`dir` (only for Python 2.6 or more recent). The default is ``True``,
2384+
respond to :func:`dir`. The default is ``True``,
23852385
which uses the filtering described below, to only show useful members. If you
23862386
dislike this filtering, or need to switch it off for diagnostic purposes, then
23872387
set ``mock.FILTER_DIR = False``.

0 commit comments

Comments
 (0)