You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mock_issue.py: Reproduces described issue, assertion error raised when it should not be.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2018-09-24.15:38:28.520>created_at=<Date2018-04-18.15:53:04.431>labels= ['3.7', 'invalid', 'type-bug', 'library']
title='Unittest Mock objects do not freeze arguments they are called with'updated_at=<Date2018-09-24.15:38:28.519>user='https://github.com/slacknate'
It is possible to make a call with a Mock object, for example, where a dictionary is passed to the mock and later modified. If a call assertion is then made against the mock using the initial value/contents of the dictionary the assertion will fail.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: