[issue25690] Replacement for unittest.mock.mock_open

Robert Collins report at bugs.python.org
Sun Mar 13 22:31:17 EDT 2016


Robert Collins added the comment:

Hmm, I haven't looked closely, but some high level thoughts.

I'm worried about making mock too complex here. We already say folk should use a VFS for complex file based tests, and there's quite a chunk of code you're adding - perhaps better to just use a VFS?

I don't like mock importing mock_open and mock_open importing mock: please keep this in a single mock.py at this point.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25690>
_______________________________________


More information about the Python-bugs-list mailing list