don't raise attribute NameErrors in all for loop name definitions.
This commit is contained in:
1 parent
bcab821df9
commit
857a9b7621
2 files changed
+9
-1
No files matched your search
@@ -43,3 +43,10 @@ c.something = None
|
||||
#! name-error
|
||||
something = a
|
||||
something
|
||||
|
||||
|
||||
# should not raise anything.
|
||||
for loop_variable in [1, 2]:
|
||||
#! name-error
|
||||
x = undefined
|
||||
loop_variable
|
||||
Reference in new issue
Block a user