Merge lp:~adiroiban/pocket-lint/pocket-lint-764627 into lp:pocket-lint
Proposed by
Curtis Hovey
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | 379 |
Merged at revision: | 377 |
Proposed branch: | lp:~adiroiban/pocket-lint/pocket-lint-764627 |
Merge into: | lp:pocket-lint |
Diff against target: |
95 lines (+35/-4) 2 files modified
pocketlint/formatcheck.py (+17/-4) pocketlint/tests/test_python.py (+18/-0) |
To merge this branch: | bzr merge lp:~adiroiban/pocket-lint/pocket-lint-764627 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey | code | Approve | |
Review via email:
|
Description of the change
Subclass PyFlakesChecker to supress irrelevant errors.
To post a comment you must log in.
I was initial -1 on handling this issue in pocket-lint, but I see your implementation provides a lot of opportunities for future development. Your PocketLintPyFla kesChecker subclass could accept a Reporter instance either in __init__ or check to remove the integration hack that is visible in the diff. I am not +1 about this change.
I want to merge your branch, but before I do, can you help me understand the test change? I expect to see an explicit test that will raise WindowsError or cause it to be raised. The change I see looks like it it updating an existing test, but it is not clear which test is checking for this. I also do not understand how the added try/except tests that the subclass suppresses the error