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.

Author pkoning
Recipients berker.peksag, michael.foord, pkoning, python-dev, quasipedia, rbcollins
Date 2015-07-22.15:04:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437577499.07.0.394489408182.issue21750@psf.upfronthosting.co.za>
In-reply-to
Content
Section 26.7.7 of the library manual describes mock_open with the words:

A helper function to create a mock to replace the use of open. It works for open called directly or used as a context manager.

which implies that it works just like open.  Given that it doesn't (not if you do two opens and use both streams concurrently) that difference should be called out as a difference, or limitation.
History
Date User Action Args
2015-07-22 15:04:59pkoningsetrecipients: + pkoning, rbcollins, michael.foord, python-dev, quasipedia, berker.peksag
2015-07-22 15:04:59pkoningsetmessageid: <1437577499.07.0.394489408182.issue21750@psf.upfronthosting.co.za>
2015-07-22 15:04:59pkoninglinkissue21750 messages
2015-07-22 15:04:59pkoningcreate