def test_withStatementSingleNameUndefined():
    flakes('''
    from __future__ import with_statement
    bar
    with open('foo') as bar:
        pass
    ''', m.UndefinedName)
An undefined name warning is emitted if the name first defined by a statement is used before the  statement.
dataset/ETHPy150Open timothycrosley/frosted/frosted/test/test_other.py/test_withStatementSingleNameUndefined