def test_redefinedTryExceptFunction():
    flakes('''
    try:
        def a(): pass
    except Exception:
        def a(): pass
    ''')
Test that shadowing a function definition twice in try and except block does not raise a warning.
dataset/ETHPy150Open timothycrosley/frosted/frosted/test/test_other.py/test_redefinedTryExceptFunction