summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)