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 pitrou
Recipients gregory.p.smith, michael.foord, pitrou, rbcollins
Date 2009-04-04.23:06:24
SpamBayes Score 0.0007528867
Marked as misclassified No
Message-id <1238886469.6865.30.camel@fsol>
In-reply-to <1238886254.75.0.632319950294.issue5679@psf.upfronthosting.co.za>
Content
> The main use case for addCleanup is resource allocation in tests. Why
> does this require clean ups to be executed before tearDown?

If your cleanup relies on something which has been set up during setUp
and will be dropped during tearDown (a database connection, a temp dir,
an ssh session, whatever), then the cleanup must be run before the
teardown.
History
Date User Action Args
2009-04-04 23:06:28pitrousetrecipients: + pitrou, gregory.p.smith, rbcollins, michael.foord
2009-04-04 23:06:27pitroulinkissue5679 messages
2009-04-04 23:06:25pitroucreate