def test_ast_good_try():
 can_compile(u'(try)')
 can_compile(u'(try 1)')
 can_compile(u'(try 1 (except) (else 1))')
 can_compile(u'(try 1 (else 1) (except))')
 can_compile(u'(try 1 (finally 1) (except))')
 can_compile(u'(try 1 (finally 1))')
 can_compile(u'(try 1 (except) (finally 1))')
 can_compile(u'(try 1 (except) (finally 1) (else 1))')
 can_compile(u'(try 1 (except) (else 1) (finally 1))')

def test_ast_good_try ( ) : can_compile ( u'(try)' ) can_compile ( u'(try 1)' ) can_compile ( u'(try 1 (except) (else 1))' ) can_compile ( u'(try 1 (else 1) (except))' ) can_compile ( u'(try 1 (finally 1) (except))' ) can_compile ( u'(try 1 (finally 1))' ) can_compile ( u'(try 1 (except) (finally 1))' ) can_compile ( u'(try 1 (except) (finally 1) (else 1))' ) can_compile ( u'(try 1 (except) (else 1) (finally 1))' )
make sure ast can compile valid try .