Current File : //opt/imh-python/lib/python2.7/test/test_global.pyo
�
��Wc@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((si/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_global.pyttest1
scCsd}t||�dS(Ns'def wrong2():
    print x
    global x
(R(Rtprog_text_2((si/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_global.pyttest2scCsd}t||�dS(Ns1def wrong3():
    print x
    x = 2
    global x
(R(Rtprog_text_3((si/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_global.pyttest3scCsd}t|dd�dS(Nsglobal x
x = 2
s
<test string>texec(tcompile(Rtprog_text_4((si/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_global.pyttest4%s(t__name__t
__module__RRR	R
(((si/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_global.pyRs	
			cCs4tj��"tjddd�tt�WdQXdS(Nterrortmodules
<test string>(twarningstcatch_warningstfilterwarningsRR(((si/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_global.pyt	test_main.s
t__main__(
t__doc__ttest.test_supportRRtunittestRtTestCaseRRR(((si/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_global.pyt<module>s&