Skip to content
Merged
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
Update Lib/test/support/__init__.py
Co-authored-by: Brett Cannon <brett@python.org>
  • Loading branch information
jaraco and brettcannon authored Jun 21, 2022
commit 8c1b4310aad4292ab300b0b3f5bf3951d2a5f35a
4 changes: 1 addition & 3 deletions Lib/test/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1770,9 +1770,7 @@ def cleanup():

@contextlib.contextmanager
def patch_list(orig):
"""
Like unittest.mock.patch.dict, but for lists.
"""
"""Like unittest.mock.patch.dict, but for lists."""
try:
saved = orig[:]
yield
Expand Down