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 vstinner
Recipients Arfrever, akira, martin.panter, piotr.dobrogost, pitrou, serhiy.storchaka, vstinner
Date 2016-03-24.14:31:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458829871.39.0.173590910441.issue19829@psf.upfronthosting.co.za>
In-reply-to
Content
Oh, the io module is more complex than what I expected :-) test_io fails with pyio_res_warn-2.patch.

test_io now pass with pyio_res_warn-3.patch. I fixed FileIO.close() to always call super().close(), and set self._fd to -1 even if logging the ResourceWarning raised an exception.
History
Date User Action Args
2016-03-24 14:31:11vstinnersetrecipients: + vstinner, pitrou, Arfrever, akira, martin.panter, piotr.dobrogost, serhiy.storchaka
2016-03-24 14:31:11vstinnersetmessageid: <1458829871.39.0.173590910441.issue19829@psf.upfronthosting.co.za>
2016-03-24 14:31:11vstinnerlinkissue19829 messages
2016-03-24 14:31:11vstinnercreate