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 stutzbach
Recipients Peter.Davies, daniel.urban, petri.lehtinen, stutzbach
Date 2011-08-01.16:20:31
SpamBayes Score 5.8218634e-06
Marked as misclassified No
Message-id <1312215632.31.0.219048667568.issue11640@psf.upfronthosting.co.za>
In-reply-to
Content
Could you add a comment above the lines defining self._BytesIO, describing why they're being set?  Someone else might see them as unnecessary and rip them out if there's no explanation.

Can a test launch Python in a subprocess, set up the appropriate data structure, let the subprocess Python shutdown, then check the subprocess's stderr for the error?

It's a little convoluted, but perhaps it could be built into a general utility function that could be used to test __del__ methods in other modules, too.

Not sure that it's worth the effort though.
History
Date User Action Args
2011-08-01 16:20:32stutzbachsetrecipients: + stutzbach, daniel.urban, Peter.Davies, petri.lehtinen
2011-08-01 16:20:32stutzbachsetmessageid: <1312215632.31.0.219048667568.issue11640@psf.upfronthosting.co.za>
2011-08-01 16:20:31stutzbachlinkissue11640 messages
2011-08-01 16:20:31stutzbachcreate