mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-92417: unittest.mock
docs: remove references to Python <2.6 (GH-92539)
This commit is contained in:
parent
a0a825c38a
commit
6823ba4a9e
2 changed files with 2 additions and 2 deletions
|
@ -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``::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue