Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.149.242.75
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : test_global.pyo
�
?��cc@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((s7/usr/local/python-2.7/lib/python2.7/test/test_global.pyttest1
scCsd}t||�dS(Ns'def wrong2():
    print x
    global x
(R(Rtprog_text_2((s7/usr/local/python-2.7/lib/python2.7/test/test_global.pyttest2scCsd}t||�dS(Ns1def wrong3():
    print x
    x = 2
    global x
(R(Rtprog_text_3((s7/usr/local/python-2.7/lib/python2.7/test/test_global.pyttest3scCsd}t|dd�dS(Nsglobal x
x = 2
s
<test string>texec(tcompile(Rtprog_text_4((s7/usr/local/python-2.7/lib/python2.7/test/test_global.pyttest4%s(t__name__t
__module__RRR	R
(((s7/usr/local/python-2.7/lib/python2.7/test/test_global.pyRs	
			cCs4tj��"tjddd�tt�WdQXdS(Nterrortmodules
<test string>(twarningstcatch_warningstfilterwarningsRR(((s7/usr/local/python-2.7/lib/python2.7/test/test_global.pyt	test_main.s
t__main__(
t__doc__ttest.test_supportRRtunittestRtTestCaseRRR(((s7/usr/local/python-2.7/lib/python2.7/test/test_global.pyt<module>s&	
© 2025 GrazzMean