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-14 19:48:30 +0100
commit55a1991d8a694bd70e38bd49bc8d69075660ee64 (patch)
tree27aea2addecfe79ce5f1afe8f43d5d5921012c61
parent3c80899ed4991831876715f58344191b1c339e33 (diff)
downloadpylint-git-55a1991d8a694bd70e38bd49bc8d69075660ee64.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)