Robert Collins added the comment:

@Paul

So the problem is that its never been a high fidelity thing in that sense.... 
In that:
3.3 -> read() is a constant for the thing opened from the mock
3.4 -> read() works once and only once across all opened files from the mock
3.5 today -> read() works once for *each* opened file from the mock, but you 
*can't access* each file object (because the mock.returnvalue is replaced each 
time, which is unmocklike)

With this patch: -> read() works once for each opened file, as long as the 
sequence open -> read -> open -> read is followed, and mock.returnvalue is a 
constant, mocklike.

----------

_______________________________________
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