def test_redefinedIfElseInListComp():
    flakes('''
    if False:
        a = 1
    else:
        [a for a in '12']
    ''')
Test that shadowing a variable in a list comprehension in an if and else block does not raise a warning.
dataset/ETHPy150Open timothycrosley/frosted/frosted/test/test_other.py/test_redefinedIfElseInListComp