Lady Red added the comment:
I wrote a test for this as it seems to have been abandoned, and opened a PR.
https://github.com/python/cpython/pull/6878
--
nosy: +mcsc...@gmail.com
___
Python tracker
<https://bugs.python.org/issue21
Lady Red added the comment:
Sorry, wrong PR number. it is 6883, and attached to this ticket
--
___
Python tracker
<https://bugs.python.org/issue21475>
___
___
Lady Red added the comment:
To have the behavior that you are expecting, I believe the mock would have to
store a deep copy of every mutable object that is passed in to any of it's
calls, in case that object later mutates.
That would really expand the memory and time footprint of wo