def test_ast_bad_except():
 cant_compile(u'(except 1)')
 cant_compile(u'(try 1 (except 1))')
 cant_compile(u'(try 1 (except [1 3]))')
 cant_compile(u'(try 1 (except [x [FooBar] BarBar]))')

def test_ast_bad_except ( ) : cant_compile ( u'(except 1)' ) cant_compile ( u'(try 1 (except 1))' ) cant_compile ( u'(try 1 (except [1 3]))' ) cant_compile ( u'(try 1 (except [x [FooBar] BarBar]))' )
make sure ast cant compile invalid except .