aboutsummaryrefslogtreecommitdiffstats
path: root/lua/tests/indent/python/control_flow.py
diff options
context:
space:
mode:
Diffstat (limited to 'lua/tests/indent/python/control_flow.py')
-rw-r--r--lua/tests/indent/python/control_flow.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/lua/tests/indent/python/control_flow.py b/lua/tests/indent/python/control_flow.py
new file mode 100644
index 000000000..543decc71
--- /dev/null
+++ b/lua/tests/indent/python/control_flow.py
@@ -0,0 +1,24 @@
+a, b, c, = 1, 2, 3
+
+if a == a:
+ x = 1
+elif b:
+ x = 2
+else:
+ x = 3
+
+while False:
+ pass
+
+for _ in range(3):
+ pass
+
+with open('/tmp/f', 'w') as f:
+ pass
+
+try:
+ pass
+except:
+ pass
+finally:
+ pass