[issue28848] Add CopyingMock to mock.py

2017-01-05 Thread Berker Peksag
Berker Peksag added the comment: Thanks for releasing it on PyPI! It's probably better to keep it as an example in the documentation for now. We can reopen this if there's a demand for CopyingMock in the future. -- nosy: +berker.peksag resolution: -> rejected stage: -> resolved

[issue28848] Add CopyingMock to mock.py

2017-01-05 Thread wim glenn
wim glenn added the comment: Guess there was no interest in this. I've released it on pypi instead (pip install copyingmock). https://github.com/wimglenn/copyingmock -- ___ Python tracker

[issue28848] Add CopyingMock to mock.py

2016-11-30 Thread wim glenn
wim glenn added the comment: Here's a first attempt at a patch. If it doesn't go into Lib finally, I'll just put up a CopyingMock on pypi instead. But it seemed like the kind of feature which should just be in mock directly rather than 3rd party, preferably. -- keywords: +patch

[issue28848] Add CopyingMock to mock.py

2016-11-30 Thread wim glenn
New submission from wim glenn: Would people be interested to consider adding the CopyingMock example shown in the documentation section "coping with mutable arguments" into the mock module? https://docs.python.org/3/library/unittest.mock-examples.html#coping-with-mutable-arguments It seems