Message83927
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. |
|
Date |
User |
Action |
Args |
2009-03-21 09:52:37 | gfxmonk | set | recipients:
+ gfxmonk |
2009-03-21 09:52:37 | gfxmonk | set | messageid: <1237629157.74.0.0990473218389.issue5531@psf.upfronthosting.co.za> |
2009-03-21 09:52:35 | gfxmonk | link | issue5531 messages |
2009-03-21 09:52:35 | gfxmonk | create | |
|