def test_redefinedTryFunction():
    flakes('''
    try:
        def a(): pass
        def a(): pass
    except Exception:
        pass
    ''', m.RedefinedWhileUnused)
Test that shadowing a function definition within a try block raises a warning.
dataset/ETHPy150Open timothycrosley/frosted/frosted/test/test_other.py/test_redefinedTryFunction