Merge lp:~gz/launchpad/py27_test_scriptmonitor_logging_1017981 into lp:launchpad
Proposed by
Martin Packman
Status: | Merged |
---|---|
Approved by: | Graham Binns |
Approved revision: | no longer in the source branch. |
Merged at revision: | 15505 |
Proposed branch: | lp:~gz/launchpad/py27_test_scriptmonitor_logging_1017981 |
Merge into: | lp:launchpad |
Diff against target: |
12 lines (+1/-1) 1 file modified
lib/lp/scripts/tests/test_scriptmonitor.py (+1/-1) |
To merge this branch: | bzr merge lp:~gz/launchpad/py27_test_scriptmonitor_logging_1017981 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | code | Approve | |
Review via email: mp+112160@code.launchpad.net |
Commit message
Fix test_scriptmonitor failures due to Python 2.7 logging module changes
Description of the change
Fix three test failures on python 2.7 from stricter checking of arguments in standard library logging module.
These three tests don't actually care about log output, but create a logger that outputs to /dev/null as well as stderr. By using None instead, the logging to file at least can be skipped. Even less setup could be done by passing in a locally created log object rather than reusing the generic setup.
To post a comment you must log in.