def test_unusedVariableNoLocals():
    flakes('''
    def a():
        locals()
        def a():
            b = 1
            return
    ''', m.UnusedVariable)
Using locals() in wrong scope should not matter.
dataset/ETHPy150Open timothycrosley/frosted/frosted/test/test_other.py/test_unusedVariableNoLocals