def test_ast_good_except():
 can_compile(u'(try 1 (except))')
 can_compile(u'(try 1 (except []))')
 can_compile(u'(try 1 (except [Foobar]))')
 can_compile(u'(try 1 (except [[]]))')
 can_compile(u'(try 1 (except [x FooBar]))')
 can_compile(u'(try 1 (except [x [FooBar BarFoo]]))')
 can_compile(u'(try 1 (except [x [FooBar BarFoo]]))')

def test_ast_good_except ( ) : can_compile ( u'(try 1 (except))' ) can_compile ( u'(try 1 (except []))' ) can_compile ( u'(try 1 (except [Foobar]))' ) can_compile ( u'(try 1 (except [[]]))' ) can_compile ( u'(try 1 (except [x FooBar]))' ) can_compile ( u'(try 1 (except [x [FooBar BarFoo]]))' ) can_compile ( u'(try 1 (except [x [FooBar BarFoo]]))' )
make sure ast can compile valid except .