3 ms·
So the final answer is basically, there's nothing the author can do. The problem was half with the user's code mocking with internals, and half with downstream
by ehsankia 7y ago
So the final answer is basically, there's nothing the author can do. The problem was half with the user's code mocking with internals, and half with downstream library not cleaning up properly.
- gowld 7y agoMocks are terrible and should almost never be used, but this wasn't a mock. This was a monkeypatch. Does anyone expect that their software would function properly in the face of arbitrary changes patched in by untrusted third parties ?
- kortilla 7y agoMonkey patching is a key feature of the python mock library. Get used to it if you’re getting into python development because you’re going to come across it.