[issue26807] mock_open()().readline() fails at EOF

Robert Collins report at bugs.python.org
Thu May 12 01:59:59 EDT 2016


Robert Collins added the comment:

So something like

  for line in _state[0]:
      yield line
  while True:
    yield ''

Will probably do it just fine.

----------

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


More information about the Python-bugs-list mailing list