403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.59
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_global.cpython-315.pyc
R
>lqj�c��Qs]PHs]QHGs]QHGs]QHGs]PH s]PH$s	QQ\O2sQs\
Q6Xc\O2P!P!)a2This module includes tests for syntax errors that occur when a name
declared as `global` is used in ways that violate the language
specification, such as after assignment, usage, or annotation. The tests
verify that syntax errors are correctly raised for improper `global`
statements following variable use or assignment within functions.
Additionally, it tests various name-binding scenarios for global
variables to ensure correct behavior.

See `test_scope.py` for additional related behavioral tests covering
variable scoping and usage in different contexts.
��check_syntax_error)�check_warnings)�SimpleNamespacec�`�\sQs]snQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsQsQsQsQsQsQsQsQsUsP!)�GlobalTestsc�j�UO[22[OQQQ5P!��errorz
<test string>)�module)�enterContextr�warnings�filterwarnings)�selfs&�%C:\Python315\\Lib\test\test_global.py�setUp�GlobalTests.setUps#�����.�*�+������@�c�(�Qo[V]]Q5P!)z*def fn(name_param):
    global name_param
��lineno�offsetr�r�	prog_texts& r�test_name_param�GlobalTests.test_name_params���	�	�4�1�Q�?rc�(�Qo[V]]Q5P!)z5def fn():
    name_assign = 1
    global name_assign
rrrs& r�test_name_after_assign�"GlobalTests.test_name_after_assign&����	�
	�4�1�Q�?rc�(�Qo[V]]Q5P!)z2def fn():
    print(name_use)
    global name_use
rrrs& r�test_name_after_use�GlobalTests.test_name_after_use.rrc�(�Qo[V]]Q5P!)z4def fn():
    name_annot: int
    global name_annot
rr)r�prog_text_3s& r�test_name_annot�GlobalTests.test_name_annot6s����
	�4�Q�q�Arc�d�[2oUrUO[2Q*U2>P!)�name_assignment_statement)�objectr'�assertIs�globals�r�values& r�test_assignment_statement�%GlobalTests.test_assignment_statementCs(�����$)�!��
�
�g�i� ;�<�e�D�%rc�n�[2oPU,vorUO[2Q*U2>P!)N�name_unpacking_assignment)r(r0r)r*)rr,�_s&  r�test_unpacking_assignment�%GlobalTests.test_unpacking_assignmentJs1�����(,�e�}�$��$��
�
�g�i� ;�<�e�D�%rc�v�[2oU9r%cUO[2Q*U2>P!)�name_assignment_expression)r(r5r)r*r+s& r�test_assignment_expression�&GlobalTests.test_assignment_expressionQs1�����).�.�%�.���
�
�g�i� <�=�u�E�&rc�v�[2oU1FDrJ	UO[2Q*U2>P!)�name_iteration_variable)r(r9r)r*r+s& r�test_iteration_variable�#GlobalTests.test_iteration_variableYs2�����(-�w�#��(/��
�
�g�i� 9�:�E�B�#rc�^�Qr[oUO[2Q*U2>P!)c��P!)N�r>rr�
name_func_defr?ds��rr?)r?r)r*r+s& r�
test_func_def�GlobalTests.test_func_defas&��	����
�
�g�i��0�%�8�rc�l�QQ2r[oUO[2Q*U2>P!)c��\sQs]nsQsP!)�name_class_defr>)�__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__r>rrrDrDns��rrD)rDr)r*r+s& r�test_class_def�GlobalTests.test_class_defks,��	�	����
�
�g�i� 0�1�5�9�rc�j�QPQQk13r[oUO[2Q*U2>P!)�name_type_alias)�c�D�U]6�cPg[[[1*!)�)�tuple�int)�.formats"rrM�4GlobalTests.test_type_alias.<locals>.name_type_aliasws��.�.�u�S�#�X��.r)rMr)r*r+s& r�test_type_alias�GlobalTests.test_type_aliasus&��.�.����
�
�g�i� 1�2�E�:�rc��]]*P![c3r[oSO[2Q*S2Pr>P!Pr>hh9h)rN�name_caught_exc)�ZeroDivisionErrorrXr)r*r+s& r�test_caught_exception�!GlobalTests.test_caught_exception|s>��	?�
��E�E�� �	?�#�E��M�M�'�)�$5�6��>�>��	?�s�	�	A�A�'A�Ac��]]*P![co[QS,2gPo=hh9h,9[9d5r[oSO[	2Q*S2Pr>ML	Pr>MMLM49eP!th9h)rN�eg�name_caught_exc_group)rY�ExceptionGroupr^r)r*)r�excr,s&  r�test_caught_exception_group�'GlobalTests.test_caught_exception_group�sk��	E�
2��A����$�
2�$�T�C�5�1�1��
2��	E�!�	E�)�E��M�M�'�)�$;�<�e�D�D��	E��s3�	�	,�,�
'�,�/�A>�A>�'A)	�$A>�7A>c���[2o[OU29^tt^2rPPP2UO	[2Q*U2>P!)%fhK49h)N�name_enter_result)r(�
contextlib�nullcontextrdr)r*r+s& r�test_enter_result�GlobalTests.test_enter_result�sG�����
�
#�
#�E�
*�
*�.?��+��
�
�g�i� 3�4�e�<��+�
*�s�A�A(	�!A(	c�`�[o]PHrUO[2Q*U2>P!)��name_import_result)rerkr)r*r+s& r�test_import_result�GlobalTests.test_import_result�s#����/��
�
�g�i� 4�5�u�=�rc�f�[2oUrUO[2Q*U2>P!)�
name_match)r(ror)r*r+s& r�
test_match�GlobalTests.test_match�s*���������
�
�g�i��-�u�5�rc�f�[2oUrUO[2Q*U2>P!)�
name_match_as)r(rsr)r*r+s& r�
test_match_as�GlobalTests.test_match_as�s*������#���
�
�g�i��0�%�8�rc��[2oPU1c
]6HcvrLUO[2Q*U2>P!)N�name_match_seq)r(rwr)r*r+s& r�test_match_seq�GlobalTests.test_match_seq�s<������U�m�$�$�!�$��%��
�
�g�i� 0�1�5�9�rc��[2oQU-c]6�cQ9dvtrLUO[2Q*U2>P!)�key�name_match_map�r{)r(r|r)r*r+s& r�test_match_map�GlobalTests.test_match_map�s?������e�n�(�(�(��(��)��
�
�g�i� 0�1�5�9�rc��[2o[UQ5[Qb9dvrLUO[	2Q*U2>P!)r}�name_match_attr)r(rr�r)r*r+s& r�test_match_attr�GlobalTests.test_match_attr�s;������%�(� �5�5��6��
�
�g�i� 1�2�E�:�rr>)rErFrGrHrrrr r$r-r2r6r:r@rJrUrZrargrlrprtrxr~r�rI�__classdictcell__)�
__classdict__s@rrrsy����A�@�@�@�B�&�&�'�$����?�
E��������rrc��[O[O22[OQQQ5P!r)�unittest�enterModuleContextr�catch_warningsr
r>rr�setUpModuler��s)������ 7� 7� 9�:����G�O�<r�__main__)�__doc__re�test.supportr�test.support.warnings_helperr�typesrr�r�TestCaserr�rE�mainr>rr�<module>r�sP��
��+�7�!���x�(�#�#�x�v=�
�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit