[issue33309] Unittest Mock objects do not freeze arguments they are called with
Karthikeyan Singaravelan
report at bugs.python.org
Mon Sep 24 11:38:28 EDT 2018
Karthikeyan Singaravelan <tir.karthi at gmail.com> 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 https://docs.python.org/3/library/unittest.mock-examples.html#coping-with-mutable-arguments . Feel free to reopen this if needed.
Thanks
----------
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33309>
_______________________________________
More information about the Python-bugs-list
mailing list