Merge lp:~allenap/testtools/gather-details into lp:~testtools-committers/testtools/trunk
Proposed by
Gavin Panella
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 190 | ||||
Proposed branch: | lp:~allenap/testtools/gather-details | ||||
Merge into: | lp:~testtools-committers/testtools/trunk | ||||
Diff against target: |
126 lines (+79/-19) 2 files modified
testtools/testcase.py (+42/-19) testtools/tests/test_fixturesupport.py (+37/-0) |
||||
To merge this branch: | bzr merge lp:~allenap/testtools/gather-details | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jonathan Lange | Approve | ||
Review via email: mp+62326@code.launchpad.net |
Description of the change
This branch does three things:
- Moves TestCase.
function. This is motivated by wanting to use it in python-fixtures
to gather details from fixtures used by other fixtures.
- Ensures that details are gathered from fixtures even when there is a
failure in fixture.setUp().
- Fixes a closure bug when gathering more than one detail from a
fixture. Previously the same content was being reported for all
details because the variable that content_callback closed over was
being updated each time round the loop in _gather_details().
To post a comment you must log in.
Wow, thanks!
* Let's keep copy_content private for now, renaming it to _copy_content.
* Add gather_details to __all__
* Tests are good.
I'll merge this with tweaks + NEWS updates.