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 gfxmonk
Recipients gfxmonk
Date 2009-03-21.09:52:33
SpamBayes Score 5.5005353e-06
Marked as misclassified No
Message-id <1237629157.74.0.0990473218389.issue5531@psf.upfronthosting.co.za>
In-reply-to
Content
This patch adds the behaviour that when a unittest.failureException is
thrown in a TestCase's tearDown method, the test case is added to the
failures list (instead of the errors list, and only when the test case
body has passed successfully).

In some circumstances, tests may want to assert that something happens
at some point during the body of a test, and the best time to make these
checks can be in the tearDown method.

This is a modification I've made during development of my mocktest
library (https://github.com/gfxmonk/mocktest/tree), and I believe it is
beneficial to have as the default unittest behaviour.
History
Date User Action Args
2009-03-21 09:52:37gfxmonksetrecipients: + gfxmonk
2009-03-21 09:52:37gfxmonksetmessageid: <1237629157.74.0.0990473218389.issue5531@psf.upfronthosting.co.za>
2009-03-21 09:52:35gfxmonklinkissue5531 messages
2009-03-21 09:52:35gfxmonkcreate