summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJulien Cristau <julien.cristau@logilab.fr>2011-07-08 12:12:33 +0200
committerJulien Cristau <julien.cristau@logilab.fr>2011-07-08 12:12:33 +0200
commit3853d731026e1dfc50b53ab5fbc3c616e874a0c6 (patch)
treeff9916765a39014a952257620d2ee6420f490aa9 /test
parent43ae5d036c7f9137122f834cb2188b4baf90f4d6 (diff)
downloadpylint-3853d731026e1dfc50b53ab5fbc3c616e874a0c6.tar.gz
Fix false positive in reimport check (closes #60828)
Diffstat (limited to 'test')
-rw-r--r--test/input/func_w0404.py7
-rw-r--r--test/messages/func_w0404.txt1
2 files changed, 8 insertions, 0 deletions
diff --git a/test/input/func_w0404.py b/test/input/func_w0404.py
new file mode 100644
index 0000000..563e824
--- /dev/null
+++ b/test/input/func_w0404.py
@@ -0,0 +1,7 @@
+"""pylint ticket #60828"""
+
+__revision__ = 0
+
+def reimport():
+ """docstring"""
+ import os
diff --git a/test/messages/func_w0404.txt b/test/messages/func_w0404.txt
new file mode 100644
index 0000000..423121a
--- /dev/null
+++ b/test/messages/func_w0404.txt
@@ -0,0 +1 @@
+W: 7:reimport: Unused variable 'os'