Make mock_open support "for line in fh" iteration #343

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

johnsca commented Mar 17, 2016

File handles support direct iteration, but the result from mock_open currently just returns an empty iterator.

Owner

rbtcollins commented Mar 20, 2016

This needs to be done in CPython and backported here - please open a ticket on bugs.python.org. Thanks.

@rbtcollins rbtcollins closed this Mar 20, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment