8000 Reorder after a rebase · python/cpython@6c9eebb · GitHub
[go: up one dir, main page]

Skip to content

Commit 6c9eebb

Browse files
committed
Reorder after a rebase
1 parent 68e6143 commit 6c9eebb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/library/unittest.mock.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,6 +1572,11 @@ patch.dict
15721572
:func:`patch.dict` can also be called with arbitrary keyword arguments to set
15731573
values in the dictionary.
15741574

1575+
.. versionchanged:: 3.8
1576+
1577+
:func:`patch.dict` now returns the patched dictionary when used as a context
1578+
manager.
1579+
15751580
:func:`patch.dict` can be used as a context manager, decorator or class
15761581
decorator:
15771582

@@ -1597,11 +1602,6 @@ If you want to use a different prefix for your test, you can inform the
15971602
patchers of the different prefix by setting ``patch.TEST_PREFIX``. For
15981603
more details about how to change the value of see :ref:`test-prefix`.
15991604

1600-
.. versionchanged:: 3.8
1601-
1602-
:func:`patch.dict` now returns the patched dictionary when used as a context
1603-
manager.
1604-
16051605
:func:`patch.dict` can be used to add members to a dictionary, or simply let a test
16061606
change a dictionary, and ensure the dictionary is restored when the test
16071607
ends.

0 commit comments

Comments
 (0)
0