[issue34077] doc Be explicit about mock_open created mocks not supporting __iter__
New submission from Andrés Delfino <adelfino@gmail.com>: 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. ---------- assignee: docs@python components: Documentation messages: 321327 nosy: adelfino, docs@python priority: normal severity: normal status: open title: doc Be explicit about mock_open created mocks not supporting __iter__ type: enhancement versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue34077> _______________________________________
Change by Andrés Delfino <adelfino@gmail.com>: ---------- keywords: +patch pull_requests: +7753 stage: -> patch review _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue34077> _______________________________________
Berker Peksag <berker.peksag@gmail.com> added the comment: -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 ---------- nosy: +berker.peksag resolution: -> rejected stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue34077> _______________________________________
Berker Peksag <berker.peksag@gmail.com> added the comment: There is also bpo-32933. ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue34077> _______________________________________
participants (2)
-
Andrés Delfino -
Berker Peksag