branches with status:
Name Status Last Modified Last Commit
lp:~cbrandily/python-fixtures/cleanup-context bug(Has a merge proposal) 1 Development 2015-05-21 05:38:53 UTC
96. Ensure cleanups are called even if se...

Author: Cedric Brandily
Revision Date: 2015-05-21 05:16:24 UTC

Ensure cleanups are called even if setUp fails with fixture context

This change ensures that a fixture cleanups will be called even if
its setUp fails when used as a context.

Example:

  with MyFixture() as fixture1:
    pass

fixture1.cleanUp will be called even if fixture1.setUp (called in
fixture1.__enter__) fails.

lp:~cbrandily/python-fixtures/python-fixtures bug(Has a merge proposal) 1 Development 2015-05-18 23:45:33 UTC
96. Ensure cleanups are called even if se...

Author: Cedric Brandily
Revision Date: 2015-05-18 23:32:25 UTC

Ensure cleanups are called even if setUp fails with useFixture

This change ensures that a nested fixture cleanups will be called even if
its setUp fails.

Example:

  with MyFixture() as fixture1:
    fixture1.useFixture(fixture2)

fixture2.cleanUp will be called in fixture1.__exit__ even if
fixture2.setUp fails.

12 of 2 results