Skip to content

Commit 48d3668

Browse files
Migrate nameerror_on_string_substitution to new functional tests
1 parent bf83940 commit 48d3668

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/input/func_nameerror_on_string_substitution.py renamed to tests/functional/u/use/used_before_assignement.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
__revision__ = None
44

5-
MSG = "hello %s" % MSG
5+
MSG = "hello %s" % MSG # [used-before-assignment]
66

77
MSG2 = ("hello %s" %
8-
MSG2)
8+
MSG2) # [used-before-assignment]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
used-before-assignment:5:19::Using variable 'MSG' before assignment
2+
used-before-assignment:8:8::Using variable 'MSG2' before assignment

tests/messages/func_nameerror_on_string_substitution.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)