def test_withStatementSubscript():
    flakes('''
    from __future__ import with_statement
    import foo
    with open('foo') as foo[0]:
        pass
    ''')
No warnings are emitted for using a subscript as the target of a  statement.
dataset/ETHPy150Open timothycrosley/frosted/frosted/test/test_other.py/test_withStatementSubscript