summaryrefslogtreecommitdiff
path: root/tests/functional/reused_outer_loop_variable_py3.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/reused_outer_loop_variable_py3.py')
-rw-r--r--tests/functional/reused_outer_loop_variable_py3.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/functional/reused_outer_loop_variable_py3.py b/tests/functional/reused_outer_loop_variable_py3.py
new file mode 100644
index 000000000..6eaa1f51c
--- /dev/null
+++ b/tests/functional/reused_outer_loop_variable_py3.py
@@ -0,0 +1,5 @@
+"""Python >= 3 tests for redefining an outer loop's variable."""
+
+for i, *j in [(1, 2, 3, 4)]:
+ for j in range(i): #[redefined-outer-name]
+ print(j)