def test_ast_bad_global():
 cant_compile(u'(global)')
 cant_compile(u'(global (foo))')

def test_ast_bad_global ( ) : cant_compile ( u'(global)' ) cant_compile ( u'(global (foo))' )
make sure ast cant compile invalid global .