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 michael.foord
Recipients gregory.p.smith, michael.foord
Date 2009-04-03.20:16:32
SpamBayes Score 0.00014584215
Marked as misclassified No
Message-id <>
This is a nice (simple to use and understand) pattern for resource
allocation / deallocation.

Supporting the cleaning up of resources when setUp fails (without
duplicating clean up code) is just one use case. (I agree setUp failure
is unusual.)

It provides a clean way to clean up just the resources you have
allocated in the event of test failure, without having to keep track
yourself of how far the test has got. Manually tracking resource usage
is easy to get wrong.


And from zope.testing:

The documentation:

The module:
Date User Action Args
2009-04-03 20:16:34michael.foordsetrecipients: + michael.foord, gregory.p.smith
2009-04-03 20:16:34michael.foordsetmessageid: <>
2009-04-03 20:16:33michael.foordlinkissue5679 messages
2009-04-03 20:16:32michael.foordcreate