[issue31177] unittest mock's reset_mock throws an error when an attribute has been deleted
Eli_B
report at bugs.python.org
Thu Nov 29 19:52:26 EST 2018
Eli_B <eli.boyarski at gmail.com> added the comment:
I suggest that after reset_mock(), deleted attributes should be available again. In other words, their deletion is reset.
I'm opening a PR to this effect.
I reported this issue to testing-cabal's mock repo in May 2016 (https://github.com/testing-cabal/mock/pull/361), but my original PR there just avoided an exception without reinstating the deleted attribute.
----------
nosy: +Eli_B
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31177>
_______________________________________
More information about the Python-bugs-list
mailing list