def test_redefinedElseInListComp():
    flakes('''
    if False:
        pass
    else:
        a = 1
        [a for a in '12']
    ''', m.RedefinedInListComp)
Test that shadowing a variable in a list comprehension in an else (or if) block raises a warning.
dataset/ETHPy150Open timothycrosley/frosted/frosted/test/test_other.py/test_redefinedElseInListComp