diff options
-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 |