summaryrefslogtreecommitdiff
path: root/pylint/test/functional/reimported.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-12-01 10:33:33 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2015-12-01 10:33:33 +0200
commit0b5ab33c81a753ad732bfa5cdcf933bb2167a12c (patch)
treecd633d1fcf87b184664860e6bf1ec88d0d866fb9 /pylint/test/functional/reimported.py
parent7ad4067a111d23c44e5978d3732caf8a5a609fe2 (diff)
downloadpylint-0b5ab33c81a753ad732bfa5cdcf933bb2167a12c.tar.gz
Refactor things through the imports checker
This patch transforms some public functions / methods to private and moves some blocks of code into their own functions. Through the latter, a couple of new messages are now emitted even though the module couldn't be imported, such as reimported, which doesn't make sense to not emit in this case.
Diffstat (limited to 'pylint/test/functional/reimported.py')
-rw-r--r--pylint/test/functional/reimported.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pylint/test/functional/reimported.py b/pylint/test/functional/reimported.py
new file mode 100644
index 0000000..1025832
--- /dev/null
+++ b/pylint/test/functional/reimported.py
@@ -0,0 +1,7 @@
+# pylint: disable=missing-docstring,unused-import,import-error
+
+from time import sleep, sleep # [reimported]
+from lala import missing, missing # [reimported]
+
+import missing1
+import missing1 # [reimported]