Current File : //home/strato/chroot/opt/RZpython2/lib/python2.7/test/test_global.pyo
�
��#ec@spdZddlmZmZddlZddlZdejfd��YZd�Ze	dkrle�ndS(sDVerify that warnings are issued for global statements following use.i����(trun_unittesttcheck_syntax_errorNtGlobalTestscBs,eZd�Zd�Zd�Zd�ZRS(cCsd}t||�dS(Ns<def wrong1():
    a = 1
    b = 2
    global a
    global b
(R(tselftprog_text_1((s0/opt/RZpython2/lib/python2.7/test/test_global.pyttest1
scCsd}t||�dS(Ns'def wrong2():
    print x
    global x
(R(Rtprog_text_2((s0/opt/RZpython2/lib/python2.7/test/test_global.pyttest2scCsd}t||�dS(Ns1def wrong3():
    print x
    x = 2
    global x
(R(Rtprog_text_3((s0/opt/RZpython2/lib/python2.7/test/test_global.pyttest3scCsd}t|dd�dS(Nsglobal x
x = 2
s
<test string>texec(tcompile(Rtprog_text_4((s0/opt/RZpython2/lib/python2.7/test/test_global.pyttest4%s(t__name__t
__module__RRR	R
(((s0/opt/RZpython2/lib/python2.7/test/test_global.pyRs	
			cCs4tj��"tjddd�tt�WdQXdS(Nterrortmodules
<test string>(twarningstcatch_warningstfilterwarningsRR(((s0/opt/RZpython2/lib/python2.7/test/test_global.pyt	test_main.s
t__main__(
t__doc__ttest.test_supportRRtunittestRtTestCaseRRR(((s0/opt/RZpython2/lib/python2.7/test/test_global.pyt<module>s&