Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/test/__pycache__/test_global.cpython-38.opt-2.pyc
U

>��g<�@sPddlmZmZmZddlZddlZGdd�dej�Zdd�Ze	dkrLe�dS)�)�run_unittest�check_syntax_error�check_warningsNc@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�GlobalTestscCs$t�|_|j��tjddd�dS�N�error�
<test string>)�module)r�_warnings_manager�	__enter__�warnings�filterwarnings��self�r�//opt/cppython/lib/python3.8/test/test_global.py�setUp
s
zGlobalTests.setUpcCs|j�ddd�dS)N)r
�__exit__rrrr�tearDownszGlobalTests.tearDowncCsd}t||ddd�dS)Nz<def wrong1():
    a = 1
    b = 2
    global a
    global b
����lineno�offset�r)rZprog_text_1rrr�test1szGlobalTests.test1cCsd}t||ddd�dS)Nz(def wrong2():
    print(x)
    global x
�rrr)rZprog_text_2rrr�test2szGlobalTests.test2cCsd}t||ddd�dS)Nz2def wrong3():
    print(x)
    x = 2
    global x
rrrr)rZprog_text_3rrr�test3%szGlobalTests.test3cCsd}t|dd�dS)Nzglobal x
x = 2
r�exec)�compile)rZprog_text_4rrr�test4.szGlobalTests.test4N)	�__name__�
__module__�__qualname__rrrrrr!rrrrrs
	rc	Cs.t���tjddd�tt�W5QRXdSr)r�catch_warningsr
rrrrrr�	test_main7s
r&�__main__)
Ztest.supportrrrZunittestrZTestCaserr&r"rrrr�<module>s/

F1le Man4ger