Is there a way to make python pickle ignore \"it\'s not the same object \" errors?
I\'m writing a test using Mock to have fine grain control over the results that d
In case someone wants a generic solution to pickle mocks:
m = mock.MagicMock() m.__reduce__ = lambda self: (mock.MagicMock, ())
Note that this doesn't seem to save internal content of the used mock (e.g calls).