Sindbad~EG File Manager

Current Path : /proc/2568807/root/usr/local/lib/python3.12/test/__pycache__/
Upload File :
Current File : //proc/2568807/root/usr/local/lib/python3.12/test/__pycache__/test_global.cpython-312.opt-1.pyc

�

'Μg����dZddlmZddlmZddlZddlZGd�dej�Zd�Z	e
dk(rej�yy)	zDVerify that warnings are issued for global statements following use.���check_syntax_error)�check_warningsNc�*�eZdZd�Zd�Zd�Zd�Zd�Zy)�GlobalTestsc�d�|jt��tjdd��y�N�error�
<test string>)�module)�enterContextr�warnings�filterwarnings)�selfs �-/usr/local/lib/python3.12/test/test_global.py�setUpzGlobalTests.setUps#�����.�*�+������@�c�&�d}t||dd��y)Nz<def wrong1():
    a = 1
    b = 2
    global a
    global b
����lineno�offsetr)r�prog_text_1s  r�test1zGlobalTests.test1s����	�4��Q�q�Arc�&�d}t||dd��y)Nz(def wrong2():
    print(x)
    global x
�rrr)r�prog_text_2s  r�test2zGlobalTests.test2s����
	�4��Q�q�Arc�&�d}t||dd��y)Nz2def wrong3():
    print(x)
    x = 2
    global x
rrrr)r�prog_text_3s  r�test3zGlobalTests.test3!s����	�4��Q�q�Arc�"�d}t|dd�y)Nzglobal x
x = 2
r�exec)�compile)r�prog_text_4s  r�test4zGlobalTests.test4*s����
	��_�f�5rN)�__name__�
__module__�__qualname__rrrr"r'�rrrr	s��A�B�B�B�6rrc��tjtj��tjdd��yr	)�unittest�enterModuleContextr�catch_warningsrr+rr�setUpModuler03s)������ 7� 7� 9�:����G�O�<r�__main__)�__doc__�test.supportr�test.support.warnings_helperrr-r�TestCaserr0r(�mainr+rr�<module>r7sF��J�+�7���'6�(�#�#�'6�T=�
�z���H�M�M�O�r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists