[New-bugs-announce] [issue17467] Enhancement: give mock_open readline() and readlines() methods

Toshio Kuratomi report at bugs.python.org
Mon Mar 18 21:09:13 CET 2013


New submission from Toshio Kuratomi:

unittest.mock provides a mock_open convenience function[1].  The convenience function handled file.read() but does not handle file.readline() or file.readlines().  I'll attach a patch that adds support for both of these methods.

[1]: http://docs.python.org/3/library/unittest.mock.html#mock-open

----------
files: python3-mock_open-methods.patch
keywords: patch
messages: 184512
nosy: a.badger
priority: normal
severity: normal
status: open
title: Enhancement: give mock_open readline() and readlines() methods
versions: Python 3.3
Added file: http://bugs.python.org/file29454/python3-mock_open-methods.patch

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


More information about the New-bugs-announce mailing list