Skip to content

Conversation

@romuald
Copy link
Contributor

@romuald romuald commented Feb 3, 2026

Update wording to indicate that unittest.mock patch.dict will make a shallow copy of the patched dict (opposed to a deep copy)

Update wording to indicate that unittest.mock patch.dict will make a
shallow copy of the patched dict (opposed to a deep copy)
@picnixz
Copy link
Member

picnixz commented Feb 3, 2026

Most of the time we use "copy" for "shallow" copy as opposed to "deep" copy which is usually mentioned. However, since this is the only occurrence of that in this page, I guess it's also fine. Can you check if there are other places in the unittest docs that require this improvement? (better do it in one go). Also can you also update the RST docs? it's much more important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants