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 hpk
Recipients hpk, srid, vinay.sajip
Date 2009-07-09.19:33:44
SpamBayes Score 6.271065e-08
Marked as misclassified No
Message-id <1247168026.63.0.0731198297991.issue6333@psf.upfronthosting.co.za>
In-reply-to
Content
To recap the use case: stdout is redirected during a test function run
which might trigger arbitrary usage of logging-functionality.  Not
closing the temporary file would mean that there could be as many open
files as there are test functions - or one needs to rely on garbage
collection for closing the resource - this is generally considered bad
practise.  So I consider it best practise to do resource cleanup
immediately and close the temp file.  

Note that the test tool *does not touch the logging module at all*, and
it has no way to mandate the usage of the logging module like you suggest.
History
Date User Action Args
2009-07-09 19:33:46hpksetrecipients: + hpk, vinay.sajip, srid
2009-07-09 19:33:46hpksetmessageid: <1247168026.63.0.0731198297991.issue6333@psf.upfronthosting.co.za>
2009-07-09 19:33:44hpklinkissue6333 messages
2009-07-09 19:33:44hpkcreate