def test_withStatementSingleNameRedefined():
    flakes('''
    from __future__ import with_statement
    import bar
    with open('foo') as bar:
        pass
    ''', m.RedefinedWhileUnused)
A redefined name warning is emitted if a name bound by an import is
dataset/ETHPy150Open timothycrosley/frosted/frosted/test/test_other.py/test_withStatementSingleNameRedefined