Merge lp:~gocept/landscape-client/py3-sysinfo into lp:~landscape/landscape-client/trunk
Proposed by
Steffen Allner
Status: | Merged |
---|---|
Approved by: | Данило Шеган |
Approved revision: | 974 |
Merged at revision: | 958 |
Proposed branch: | lp:~gocept/landscape-client/py3-sysinfo |
Merge into: | lp:~landscape/landscape-client/trunk |
Prerequisite: | lp:~gocept/landscape-client/py3-fs |
Diff against target: |
98 lines (+21/-36) 2 files modified
landscape/sysinfo/tests/test_deployment.py (+19/-14) py3_ready_tests (+2/-22) |
To merge this branch: | bzr merge lp:~gocept/landscape-client/py3-sysinfo |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Howitz (community) | Approve | ||
Данило Шеган (community) | Approve | ||
🤖 Landscape Builder | test results | Approve | |
Review via email:
|
Commit message
Update landscape.sysinfo tests to work with python 2.x and 3.x.
Description of the change
We are on the journey to Python 2/3 compatibility.
This MP considers landscape.sysinfo module, where only a few tests had to be ported. First, mocking builtins works different now. Second, SystemExit lost his .message attribute, .code can be used instead.
To post a comment you must log in.
Command: TRIAL_ARGS=-j4 make check /ci.lscape. net/job/ latch-test- xenial/ 3620/
Result: Success
Revno: 972
Branch: lp:~gocept/landscape-client/py3-sysinfo
Jenkins: https:/