Merge ~smoser/cloud-init:bug/fix-py26-tests-assertNone into cloud-init:master
| Status: | Merged |
|---|---|
| Merged at revision: | e5b2c011440aefe036c71a8c5e8ec547cc80f270 |
| Proposed branch: | ~smoser/cloud-init:bug/fix-py26-tests-assertNone |
| Merge into: | cloud-init:master |
| Diff against target: |
129 lines (+18/-17) 2 files modified
tests/unittests/test_datasource/test_altcloud.py (+2/-1) tests/unittests/test_handler/test_handler_ntp.py (+16/-16) |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Chad Smith | Approve on 2017-05-25 | ||
| Server Team CI bot | continuous-integration | Approve on 2017-05-25 | |
| cloud-init commiters | 2017-05-25 | Pending | |
|
Review via email:
|
|||
Commit Message
tests: fix unit tests usage of assertNone on centos 6.
python2.6 unittest.TestCase does not have the assertIsNone or
assertIsNotNone. We just have to explicitly use the unittest2
version, which we get from helpers.
The desire to use assertIsNone comes from flake8 (through hacking,
I believe).
Also, fix "{}.format('foo')" which is not valid in python2.6.
PASSED: Continuous integration, rev:9ff24b4e14c
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild:
https:/
| Chad Smith (chad.smith) wrote : | # |
Wow good to know about format issues on cent6 as I've used it in other places. I'll be wary for next time. +1


PASSED: Continuous integration, rev:b974ba08172 2e1d0ea5f577c52 e4839e71fcee3b /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 394/ /jenkins. ubuntu. com/server/ job/cloud- init-ci/ nodes=metal- amd64/394 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ nodes=metal- arm64/394 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ nodes=metal- ppc64el/ 394 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ nodes=metal- s390x/394 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ nodes=vm- i386/394
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 394/rebuild
https:/