Merge lp:~gocept/landscape-client/py3-watchdog into lp:~landscape/landscape-client/trunk
Proposed by
Steffen Allner
Status: | Merged |
---|---|
Approved by: | Eric Snow |
Approved revision: | 980 |
Merged at revision: | 980 |
Proposed branch: | lp:~gocept/landscape-client/py3-watchdog |
Merge into: | lp:~landscape/landscape-client/trunk |
Prerequisite: | lp:~gocept/landscape-client/py3-broker-exchange |
Diff against target: |
119 lines (+18/-22) 4 files modified
landscape/tests/test_watchdog.py (+5/-8) landscape/user/tests/test_changes.py (+9/-13) landscape/watchdog.py (+3/-1) py3_ready_tests (+1/-0) |
To merge this branch: | bzr merge lp:~gocept/landscape-client/py3-watchdog |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
🤖 Landscape Builder | test results | Approve | |
Daniel Havlik (community) | Approve | ||
Eric Snow (community) | Approve | ||
Alberto Donato (community) | Approve | ||
Review via email:
|
Commit message
This is the Python 3 port of landscape.watchdog.
The key change is moving from the builtin filter(), which changed in Python 3, to a list comprehension.
Description of the change
This MP fixes the tests for landscape.watchdog module, which were mainly broken by a behaviour change in the built in filter() function. It now returned a not so well iterable, which did not yield anything in some loops, but a list comprehension for 3 items is acceptable, I suppose.
Additionally, I removed all assertItemsEqual() in the project, which implies the dependency on the py3-broker-exchange branch.
Some smaller test fixes concerning bytes have been necessary as well.
To post a comment you must log in.
Command: TRIAL_ARGS=-j4 make check /ci.lscape. net/job/ latch-test- xenial/ 3786/
Result: Success
Revno: 978
Branch: lp:~gocept/landscape-client/py3-watchdog
Jenkins: https:/