Paul Koning added the comment:

Sure, you can use a vfs.  That's true for a lot of mock functions; the benefit 
of mock, including mock_open, is that it provides an easier and better packaged 
way.  The behavior expected is "be like a file".  So in that last example, if 
you open it twice, you've got two views of the same "file" data, independent of 
each other, and reads of each file will see that data in full.  A.read() has no 
effect on B.read().

I don't think I understand what the latest discussion/issue is all about.

----------

_______________________________________
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