[issue21258] Add __iter__ support for mock_open

Paul Koning report at bugs.python.org
Thu Jun 12 19:44:26 CEST 2014


Paul Koning added the comment:

I created a fix for this.  This also fixes a second issue in mock_open, which is that readline() raises StopIteration at EOF rather than returning empty strings.  See attached diff.
(Is there a  better procedure for submitting fixes?)

----------
nosy: +pkoning
Added file: http://bugs.python.org/file35597/mock.diff

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


More information about the Python-bugs-list mailing list