summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-03-09 20:30:12 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-03-28 22:45:45 +0200
commitf4a3b2a8dba20f0fcd30638870cea8762204641c (patch)
tree13b8f6472dcde1a67631aeff8fc6fd0a49bc841e
parent83fef1400b3b604c29b2b7d58976068b46ce4d78 (diff)
downloadpylint-git-f4a3b2a8dba20f0fcd30638870cea8762204641c.tar.gz
Migrate func_no_dummy_redefined.py to new functional tests
-rw-r--r--tests/functional/n/no/no_dummy_redefined.py (renamed from tests/input/func_no_dummy_redefined.py)4
-rw-r--r--tests/functional/n/no/no_dummy_redefined.txt2
-rw-r--r--tests/messages/func_no_dummy_redefined.txt2
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/input/func_no_dummy_redefined.py b/tests/functional/n/no/no_dummy_redefined.py
index a5c0aea4a..c6b093dad 100644
--- a/tests/input/func_no_dummy_redefined.py
+++ b/tests/functional/n/no/no_dummy_redefined.py
@@ -4,11 +4,11 @@ from __future__ import print_function
_, INTERESTING = 'a=b'.split('=')
-value = 10
+value = 10 # [invalid-name]
def clobbering():
"""Clobbers a dummy name from the outer scope."""
- value = 9
+ value = 9 # [redefined-outer-name]
for _ in range(7):
print(value)
diff --git a/tests/functional/n/no/no_dummy_redefined.txt b/tests/functional/n/no/no_dummy_redefined.txt
new file mode 100644
index 000000000..3e6854be5
--- /dev/null
+++ b/tests/functional/n/no/no_dummy_redefined.txt
@@ -0,0 +1,2 @@
+invalid-name:7:0::"Constant name ""value"" doesn't conform to UPPER_CASE naming style"
+redefined-outer-name:12:4:clobbering:Redefining name 'value' from outer scope (line 7)
diff --git a/tests/messages/func_no_dummy_redefined.txt b/tests/messages/func_no_dummy_redefined.txt
deleted file mode 100644
index a7db92f55..000000000
--- a/tests/messages/func_no_dummy_redefined.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-C: 7: Constant name "value" doesn't conform to UPPER_CASE naming style
-W: 12:clobbering: Redefining name 'value' from outer scope (line 7)