Comment 5 for bug 897190

Revision history for this message
Jonathan Lange (jml) wrote : Re: [Bug 897190] Re: Details added in fixture cleanup are not gathered

Good analysis.

Only point I'd add is that this makes the `setUp` behaviour of fixtures
different from the `setUp` of `TestCase`. If `TestCase.setUp` raises an
error, `TestCase.tearDown` is not run. This difference will probably
confuse people.

On Mon, 22 Jun 2015 at 03:20 Robert Collins <email address hidden>
wrote:

> I'm going to propose that we attach details to an exception and raise
> that when setUp fails.
>
> https://rbtcollins.wordpress.com/2015/06/22/revisiting-the-fixture-api-
> handling-leaky-resources/
> <https://rbtcollins.wordpress.com/2015/06/22/revisiting-the-fixture-api-handling-leaky-resources/>
> is my analysis of why.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/897190
>
> Title:
> Details added in fixture cleanup are not gathered
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/python-fixtures/+bug/897190/+subscriptions
>