This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: doc Be explicit about mock_open created mocks not supporting __iter__
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.8, Python 3.7, Python 3.6
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: docs@python Nosy List: adelfino, berker.peksag, docs@python
Priority: normal Keywords: patch

Created on 2018-07-09 15:57 by adelfino, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 8203 closed adelfino, 2018-07-09 16:05
Messages (3)
msg321327 - (view) Author: Andrés Delfino (adelfino) * (Python triager) Date: 2018-07-09 15:57
I've been bitten by this one, and while the docs are clear in what the created mock objects support, I think something explicit about __iter__ will help.
msg321333 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2018-07-09 16:18
-1. We can't document every non-existent feature in the stdlib documentation.

There is an already open issue for adding __iter__ support to mock_open(): Issue 21258
msg321335 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2018-07-09 16:33
There is also bpo-32933.
History
Date User Action Args
2022-04-11 14:59:02adminsetgithub: 78258
2018-07-09 16:33:31berker.peksagsetmessages: + msg321335
2018-07-09 16:18:04berker.peksagsetstatus: open -> closed

nosy: + berker.peksag
messages: + msg321333

resolution: rejected
stage: patch review -> resolved
2018-07-09 16:05:28adelfinosetkeywords: + patch
stage: patch review
pull_requests: + pull_request7753
2018-07-09 15:57:57adelfinocreate