diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-11-30 00:46:56 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-11-30 00:46:56 +0200 |
commit | a56f16b7a7e5b7b40a9d613e8cbec671a052f9e3 (patch) | |
tree | 442a49272532e2d8f0d00149772de90eda092920 /pylint/test/unittest_lint.py | |
parent | b751e27cab545061149f1714e96449dfc1d60a9d (diff) | |
download | pylint-a56f16b7a7e5b7b40a9d613e8cbec671a052f9e3.tar.gz |
Add wrong-import-position to check_messages's decorator arguments for ImportChecker.leave_module
This fixes an esoteric bug which occurs when ungrouped-imports and wrong-import-order
are disabled and pylint is executed on multiple files. What happens is that without
wrong-import-position in check_messages, leave_module will never be called, which means
that the first non-import node from other files might leak into the current file,
leading to wrong-import-position being emitted by pylint.
Diffstat (limited to 'pylint/test/unittest_lint.py')
0 files changed, 0 insertions, 0 deletions