[docs] [issue28733] Show how to use mock_open in modules other that __main__

Michał Bultrowicz report at bugs.python.org
Thu Dec 1 08:31:53 EST 2016

Michał Bultrowicz added the comment:

One more update - I had the problem, because I was using monkeypatch.setattr() from Pytest, and assumed that it will work the same as patch(). This assumption turned out to be wrong.


Python tracker <report at bugs.python.org>

More information about the docs mailing list