summaryrefslogtreecommitdiff
path: root/tests/functional/ext/consider_ternary_expression.py
blob: 5ed5eaac401ce834acfda3d7c5b4e5f68b110835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
if f():  # [consider-ternary-expression]
    x = 4
else:
    x = 5

if g():
    y = 3
elif h():
    y = 4
else:
    y = 5

def a():
    if i():  # [consider-ternary-expression]
        z = 4
    else:
        z = 5