def test_withStatementNameDefinedInBody():
    flakes('''
    from __future__ import with_statement
    with open('foo') as bar:
        baz = 10
    baz
    ''')
A name defined in the body of a  statement can be used after the body ends without warning.
dataset/ETHPy150Open timothycrosley/frosted/frosted/test/test_other.py/test_withStatementNameDefinedInBody