From 3853d731026e1dfc50b53ab5fbc3c616e874a0c6 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Fri, 8 Jul 2011 12:12:33 +0200 Subject: Fix false positive in reimport check (closes #60828) --- test/input/func_w0404.py | 7 +++++++ test/messages/func_w0404.txt | 1 + 2 files changed, 8 insertions(+) create mode 100644 test/input/func_w0404.py create mode 100644 test/messages/func_w0404.txt (limited to 'test') 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' -- cgit v1.2.1