Merge ~powersj/cloud-init:style-fix into cloud-init:master
Proposed by
Joshua Powers
Status: | Merged |
---|---|
Approved by: | Scott Moser |
Approved revision: | cac1e9b3a7eb30947e5ad11966954857f44463cf |
Merged at revision: | 8d58f12248c0bd9e8f88296f29935fd3dc33b415 |
Proposed branch: | ~powersj/cloud-init:style-fix |
Merge into: | cloud-init:master |
Diff against target: |
28 lines (+4/-2) 2 files modified
tests/unittests/test_handler/test_handler_ntp.py (+2/-1) tests/unittests/test_handler/test_schema.py (+2/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Approve | |
cloud-init Commiters | Pending | ||
Review via email: mp+325274@code.launchpad.net |
Commit message
test: Fix lint check of unused import
The jsonschema package is used only when available, but the lint
check thinks the import is unused across pyflakes and flake8. In
order to avoid having exceptions for both assert that the import
works right after and the import is considered used.
LP: #1695918
To post a comment you must log in.
There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.
The code looks fine, but I'm slightly confused by the commit message.
Can you explain why we're using assert modulename? Possible mention in the code as a comment as well.