[issue44185] mock_open file handle __exit__ does not call close

2021-06-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +michael.foord versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-

[issue44185] mock_open file handle __exit__ does not call close

2021-06-24 Thread Samet Yaslan
Change by Samet Yaslan : -- keywords: +patch nosy: +sametyaslan nosy_count: 3.0 -> 4.0 pull_requests: +25478 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26902 ___ Python tracker _

[issue44185] mock_open file handle __exit__ does not call close

2021-05-20 Thread Pierre Ossman
Change by Pierre Ossman : -- nosy: +CendioOssman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue44185] mock_open file handle __exit__ does not call close

2021-05-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue44185] mock_open file handle __exit__ does not call close

2021-05-20 Thread William Sjoblom
New submission from William Sjoblom : A common testing scenario is assuring that opened files are closed. Since unittest.mock.mock_open() can be used as a context manager, it would be reasonable to expect its __exit__ to invoke close so that one can easily assert that the file was closed, reg