summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-03-07 22:11:46 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-03-07 22:59:36 +0100
commit48d366855759b612cc883409997ba161afe09095 (patch)
treecf9065317cc2ac96061c84c588cb0e8e5fb6242e
parentbf8394082f610fa0de6dd6d1d46c9233cf3b65af (diff)
downloadpylint-git-48d366855759b612cc883409997ba161afe09095.tar.gz
Migrate nameerror_on_string_substitution to new functional tests
-rw-r--r--tests/functional/u/use/used_before_assignement.py (renamed from tests/input/func_nameerror_on_string_substitution.py)4
-rw-r--r--tests/functional/u/use/used_before_assignement.txt2
-rw-r--r--tests/messages/func_nameerror_on_string_substitution.txt2
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/input/func_nameerror_on_string_substitution.py b/tests/functional/u/use/used_before_assignement.py
index be7b5c82a..c975b1dc2 100644
--- a/tests/input/func_nameerror_on_string_substitution.py
+++ b/tests/functional/u/use/used_before_assignement.py
@@ -2,7 +2,7 @@
__revision__ = None
-MSG = "hello %s" % MSG
+MSG = "hello %s" % MSG # [used-before-assignment]
MSG2 = ("hello %s" %
- MSG2)
+ MSG2) # [used-before-assignment]
diff --git a/tests/functional/u/use/used_before_assignement.txt b/tests/functional/u/use/used_before_assignement.txt
new file mode 100644
index 000000000..d19fe322a
--- /dev/null
+++ b/tests/functional/u/use/used_before_assignement.txt
@@ -0,0 +1,2 @@
+used-before-assignment:5:19::Using variable 'MSG' before assignment
+used-before-assignment:8:8::Using variable 'MSG2' before assignment
diff --git a/tests/messages/func_nameerror_on_string_substitution.txt b/tests/messages/func_nameerror_on_string_substitution.txt
deleted file mode 100644
index aab21024b..000000000
--- a/tests/messages/func_nameerror_on_string_substitution.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-E: 5: Using variable 'MSG' before assignment
-E: 8: Using variable 'MSG2' before assignment