def test_unusedVariable_noLocals(self):
        self.flakes('''
        def a():
            locals()
            def a():
                b = 1
                return
        ''', m.UnusedVariable)
Using locals() in wrong scope should not matter
dataset/ETHPy150Open kevinw/pyflakes/pyflakes/test/test_other.py/TestUnusedAssignment.test_unusedVariable_noLocals