[issue33309] Unittest Mock objects do not freeze arguments they are called with

2018-09-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the details. As part of triaging I am closing this as not a bug since passing mutable arguments to a mock object and modifying it is a documented behavior at

[issue33309] Unittest Mock objects do not freeze arguments they are called with

2018-06-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the issue. I think this is documented here : https://docs.python.org/3/library/unittest.mock-examples.html#coping-with-mutable-arguments Thanks -- nosy: +xtreak ___ Python tracker

[issue33309] Unittest Mock objects do not freeze arguments they are called with

2018-04-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +ezio.melotti, michael.foord, rbcollins ___ Python tracker ___

[issue33309] Unittest Mock objects do not freeze arguments they are called with

2018-04-18 Thread Nathaniel Duarte
New submission from Nathaniel Duarte : 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