Merge lp:~jml/python-fixtures/logger into lp:~python-fixtures/python-fixtures/trunk
Proposed by
Jonathan Lange
Status: | Merged |
---|---|
Merged at revision: | 60 |
Proposed branch: | lp:~jml/python-fixtures/logger |
Merge into: | lp:~python-fixtures/python-fixtures/trunk |
Diff against target: |
196 lines (+109/-13) 4 files modified
lib/fixtures/__init__.py (+2/-0) lib/fixtures/_fixtures/__init__.py (+2/-0) lib/fixtures/_fixtures/logger.py (+39/-12) lib/fixtures/tests/_fixtures/test_logger.py (+66/-1) |
To merge this branch: | bzr merge lp:~jml/python-fixtures/logger |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Collins | Approve | ||
Review via email: mp+139867@code.launchpad.net |
Commit message
Make the logging handler more generic.
Description of the change
Make the logger fixture a bit more generic by parametrizing the handler.
Change the existing logger fixture to use the newer more generic one.
To post a comment you must log in.
77 + if self._nuke_ handlers: logger. handlers) : removeHandler( handler) (logger. addHandler, handler)
78 + for handler in reversed(
79 + logger.
80 + self.addCleanup
line 80 should be before 79 I think.