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 <rep...@bugs.python.org> <http://bugs.python.org/issue21258> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com