def test_assignmentInsideLoop():
    flakes('''
    def f():
        x = None
        for i in range(10):
            if i > 2:
                return x
            x = i * 2
    ''')
Don't warn when a variable assignment occurs lexically after its use.
dataset/ETHPy150Open timothycrosley/frosted/frosted/test/test_other.py/test_assignmentInsideLoop