diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-07 22:11:46 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-07 22:59:36 +0100 |
commit | 48d366855759b612cc883409997ba161afe09095 (patch) | |
tree | cf9065317cc2ac96061c84c588cb0e8e5fb6242e | |
parent | bf8394082f610fa0de6dd6d1d46c9233cf3b65af (diff) | |
download | pylint-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.txt | 2 | ||||
-rw-r--r-- | tests/messages/func_nameerror_on_string_substitution.txt | 2 |
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 |