Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Address nitpicks
  • Loading branch information
GovernmentPlates committed Jul 15, 2024
commit f5113da00bef457ca3989d2737cc36efc7dc4b04
2 changes: 1 addition & 1 deletion Doc/library/unittest.mock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,7 @@ patch.dict
.. function:: patch.dict(in_dict, values=(), clear=False, **kwargs)

Patch a dictionary, or dictionary like object, and restore the dictionary
to its original state after the test, where the restored dictionary is the
to its original state after the test, where the restored dictionary is a
copy of the dictionary as it was before the test.

*in_dict* can be a dictionary or a mapping like container. If it is a
Expand Down
2 changes: 1 addition & 1 deletion Lib/unittest/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -1830,7 +1830,7 @@ class _patch_dict(object):
"""
Patch a dictionary, or dictionary like object, and restore the dictionary
to its original state after the test, where the restored dictionary is
the copy of the dictionary as it was before the test.
a copy of the dictionary as it was before the test.

`in_dict` can be a dictionary or a mapping like container. If it is a
mapping then it must at least support getting, setting and deleting items
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Improve documentation for :func:`unittest.mock.patch.dict`
Improved documentation for :func:`unittest.mock.patch.dict`