diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-12-20 00:33:55 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-12-20 00:33:55 +0200 |
commit | c9701a3ece6aa2e7f485ec78d426d1d018fc85ae (patch) | |
tree | 1464d423c50c84d1c36fea2c283e894ade01e941 /pylint/test | |
parent | 10280b507be8bdda580874ec4d87073200b3e76b (diff) | |
download | pylint-git-c9701a3ece6aa2e7f485ec78d426d1d018fc85ae.tar.gz |
Revert change from ead6051d
The refactoring introduced a subtle semantic change, which resulted
in imports being skipped in functions where no global names were
previously defined. Closes issue #737.
Diffstat (limited to 'pylint/test')
-rw-r--r-- | pylint/test/functional/unused_variable.py | 4 | ||||
-rw-r--r-- | pylint/test/functional/unused_variable.txt | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/pylint/test/functional/unused_variable.py b/pylint/test/functional/unused_variable.py new file mode 100644 index 000000000..4e210b016 --- /dev/null +++ b/pylint/test/functional/unused_variable.py @@ -0,0 +1,4 @@ +# pylint: disable=missing-docstring + +def test_regression_737(): + import xml # [unused-variable] diff --git a/pylint/test/functional/unused_variable.txt b/pylint/test/functional/unused_variable.txt new file mode 100644 index 000000000..1265107c0 --- /dev/null +++ b/pylint/test/functional/unused_variable.txt @@ -0,0 +1 @@ +unused-variable:4:test_regression_737:Unused variable 'xml'
\ No newline at end of file |