This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jim Jeon
Recipients Jim Jeon
Date 2019-10-02.08:52:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570006369.69.0.450054962888.issue38346@roundup.psfhosted.org>
In-reply-to
Content
When `assert_called_with` is used with mutable object, test fails if the object has changed. I think this is not what it meant to do.

https://docs.python.org/dev/library/unittest.mock-examples.html#coping-with-mutable-arguments

The same situation is explained in this document. But I don't understand why they did not fix and just are proposing some solutions to the users.
History
Date User Action Args
2019-10-02 08:52:49Jim Jeonsetrecipients: + Jim Jeon
2019-10-02 08:52:49Jim Jeonsetmessageid: <1570006369.69.0.450054962888.issue38346@roundup.psfhosted.org>
2019-10-02 08:52:49Jim Jeonlinkissue38346 messages
2019-10-02 08:52:49Jim Jeoncreate