Paul Koning added the comment:

Section 26.7.7 of the library manual describes mock_open with the words:

A helper function to create a mock to replace the use of open. It works for 
open called directly or used as a context manager.

which implies that it works just like open.  Given that it doesn't (not if you 
do two opens and use both streams concurrently) that difference should be 
called out as a difference, or limitation.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21750>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to