403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
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 :  /Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/test/__pycache__/test_frame.cpython-315.opt-2.pyc
R
>lqj�_c�
�]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PH"s]QH(Gs]QH0G
s
]QH8GsGs]QHDGs]QH0GsQQ\O(2sQQ	\O(2sQ
Q\O(2sQQ
\O(2sQQ\O22sQQ\O(2sQQ\O(2s\Q6Xc\O<2P!P!\	cPsK�h9h)�)�Mapping)�support)�
import_helper�threading_helper)�assert_python_ok)�
mapping_testsc�`�\sQs]snQ
QksQsQsQsQsQs	Qs
QsQ	sQ
s
\OQ2sQsUsP!)�	ClearTestc��]]*P!���)�self�x�kwargss&&,�$C:\Python315\\Lib\test\test_frame.py�inner�ClearTest.inners��	�!���c�f�UOQ-U@W![coSoPo=S!Po=hh9h)Nr
)r�ZeroDivisionError)rr�e�excs&,  r�outer�ClearTest.outers9��	��J�J� �� ��
��!�	��C��
��	�s��	0�0�+�0c�`�Ud)UOO2UOoJ,P!�N)�tb_frame�clear�tb_next)r�tbs&&r�clear_traceback_frames� ClearTest.clear_traceback_frames$s'���n��K�K�������B�rc�b�QQ2oU2o[OU2oUOUQ5o=[O2UOPU22UO
UO2[O2UOPU22P!)c��\sQs]-sQsP!)�&ClearTest.test_clear_locals.<locals>.Cr
��__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__r
rr�Cr%-���rr,��c)	�weakref�refrr�
gc_collect�assertIsNotr!�
__traceback__�assertIs�rr,r/�wrrs&    r�test_clear_locals�ClearTest.test_clear_locals,s���	�	�
�C��
�[�[��^���j�j�1�j�o��
���������r�t�$��#�#�C�$5�$5�6������
�
�d�B�D�!rc�|``�QQ2nPnUU1QkoU2P![c�o[O2SOR22SOO
OO2[O2SOR22Po=P!Po=hh9h)c��\sQs]=sQsP!)�<ClearTest.test_clear_locals_after_f_locals_access.<locals>.Cr
r&r
rrr,r<=r-rr,c�V:�R2o[OU2n]]*P!r)r0r1)r/r,r7s ��rr�@ClearTest.test_clear_locals_after_f_locals_access.<locals>.innerAs �����A����Q��B�
�a�C�Cr)	rrr2�assertIsNotNoner4rrr�assertIsNone)rrrr,r7s&  @@r�'test_clear_locals_after_f_locals_access�1ClearTest.test_clear_locals_after_f_locals_access;s����	�	���	�	$��G�� �	$���� �� � ���&����%�%�.�.�4�4�6���� ����b�d�#�#��	$�s�!�	B;�B;�BB6�6B;c�|�QQ2oU2oUOUQ5o=UOOoUO2UO	UO
P2UO	UOP2UO	UOP2UO	UOP2P!)c��\sQs]QsQsP!)�7ClearTest.test_clear_does_not_clear_specials.<locals>.Cr
r&r
rrr,rEQr-rr,r.)	rr4rrr3�f_code�f_locals�
f_builtins�	f_globals)rr,r/r�fs&    r�"test_clear_does_not_clear_specials�,ClearTest.test_clear_does_not_clear_specialsPs���	�	�
�C���j�j�1�j�o��
����&�&��	���	�������4�(�������T�*�������t�,�������d�+rc�.``�P
nUU1QkoU2o[U2ROR2RO[Q29^tt^2UOO2PPP2ROR2P!)%fhK#9h)Fc3�P: �Pw�RO2P	nP!P	nh9h3hr)r)�endlyrs��r�g�)ClearTest.test_clear_generator.<locals>.g_s!����
���
�
�������s�&��&�#�&�suspended frame)�next�assertFalse�assertRaisesRegex�RuntimeError�gi_framer)rrP�genrOsf  @r�test_clear_generator�ClearTest.test_clear_generator]so�����	��c���S�	�������
#�
#�L�2D�
E�
E��L�L��� �F������F�
E�s�B�B	�
B	c��]]*UO[29^tt^2WO2PPP2UO[29^tt^2WOO2PPP2P![c!oSOOoPo=K�Po=hh9h)%fhK�9h)%fhP!9hr�rr4r�assertRaisesrVr�f_back)rrrJs&  r�test_clear_executing�ClearTest.test_clear_executingos���	)�
�a�C��
�
�|�
,�
,�
�G�G�I�-�
�
�
�|�
,�
,�
�H�H�N�N��-�
,��	!�	)����(�(�A��	)��
,�
,��
,�
,�
,�s@�	B�B2�C�	B/�B/�B*�*B/�2C	�;C	�C	�C	c�``�P
nUU1QkoU2o[U2oROR2RO[Q29^tt^2UO	2PPP2ROR2P!)%fhK#9h)Fc3��: �]]*P	nP![c�oSOOoRO[29^tt^2SO2PPP2L)%fhL9hRO[29^tt^2SOO2PPP2L)%fhL9hSw�Po=K�Po=hh9hP	nh9h3hrr\)rrJrOrs  ��rrP�3ClearTest.test_clear_executing_generator.<locals>.g}s�����

��!�����%�
��O�O�,�,���&�&�|�4�4��G�G�I�5�4�4�4���&�&�|�4�4��H�H�N�N�$�5�4�4�4������

����sw�C+�	�C+�	C!�C!�3C�A+�"	C�+A;�4A;�6%C�B?�6	C�?C�C�

C�C$�C!�!C$�$C(�(C+rR)rSrTrUrVr)rrPrXrJrOsf   @r�test_clear_executing_generator�(ClearTest.test_clear_executing_generatorzsh�����	��c����I�������
�
#�
#�L�2C�
D�
D�
�G�G�I�E������E�
D�s�A:�:B
	�B
	c�``�U1QknU1Qko,QNo,nUP
2UORU2,nUP	2UORU2P!)c�:�[O]2oROUOUOO
*
2P!r)�sys�	_getframe�append�f_linenorF�co_firstlineno)rJ�liness �r�record_line�7ClearTest.test_lineno_with_tracing.<locals>.record_line�s0����
�
�a� �A��L�L����A�H�H�$;�$;�;�<rc�z:�R2U%cP	[O]2mR2R2P!)T)rhri�f_trace)�tracerns&�r�test�0ClearTest.test_lineno_with_tracing.<locals>.test�s&����M��+/��
�
�a� �(��M��Mr)r����assertEqual)rrs�expected_linesrmrns&  @@r�test_lineno_with_tracing�"ClearTest.test_lineno_with_tracing�sL���	=�	�#�����U�������/����T�
������/rc��[O29^tt^2QQ2oU2o[OU2oUO	UQ5o=UOPU22UO
UO2UOPU22PPP2P!)%fhP!9h)c��\sQs]�sQsP!)�)ClearTest.test_clear_refcycles.<locals>.Cr
r&r
rrr,r~�s��rr,r.)	r�
disable_gcr0r1rr3r!r4r5r6s&    r�test_clear_refcycles�ClearTest.test_clear_refcycles�s����
�
�
!�
!�
�
���A����Q��B��*�*�q�*�/�C�����T�2�4�(��'�'��(9�(9�:��M�M�$���%�"�
!�
!�
!�s�BB-�-B>	�6B>	r
)rv)r'r(r)r*rrr!r8rArKrYr_rdrzr�cpython_onlyr�r+�__classdictcell__��
__classdict__s@rr	r	sQ����
���
"�$�*,� �$	� �00�(
���&��&rr	c�@`�\sQs]�snQsQsQsQsQsQs	Us
P!)�FrameAttrsTestc���QoU2W![cKoSOo,oS%c*SOSO2SOoJ1Po=S!Po=hh9h)c�(`�]n]oU1QkoU2!)rvc�2:�R]*o]]*]	oP!��r
��z�trs  �rr�8FrameAttrsTest.make_frames.<locals>.outer.<locals>.inner�������E���!���rr
��yrrs  @rr�)FrameAttrsTest.make_frames.<locals>.outer������A��A�
��7�Nr)rr4rjrr)rrrr �framess&    r�make_frames�FrameAttrsTest.make_frames�s`��	�	 ��G��
��
!�	 ����B��F���
�
�b�k�k�*��Z�Z����
��
	 �s��	A$�A$�A�)A�A$c���UO2vqoUO2UO2UOUO-2UOUO-2P!r)r�rrxrG�rrJrrs&   rr8� FrameAttrsTest.test_clear_locals�sN���*�*�,���%�
���
�
���
��������,��������,rc�N�UO2vqoUOUO-2UOUO-2UO2UO2UO	UO-2UO	UO-2P!r)r��assertNotEqualrGrrxr�s&   r�test_locals_clear_locals�'FrameAttrsTest.test_locals_clear_locals�sv���*�*�,���%����E�N�N�B�/����E�N�N�B�/�
���
�
���
��������,��������,rc��UO2vooUO[29^tt^2U;PPP2P!)%fhP!9hr)r�r]�AttributeErrorrk)rrJ�_s&  r�test_f_lineno_del_segfault�)FrameAttrsTest.test_f_lineno_del_segfault�s;���"�"�$���1�a�
�
�
�~�
.�
.��
�/�
.�
.�
.�s�A�A	�	A	c��QoQoQoQoUOU22UOU22U2o[U2oUOVV2UO2U2oUO	P2[Q2gSO2h9h[c(oSOSOS2Po=P!Po=hh9h)c�`�QnU1QkoU2o[U2UO2!SO2h9h)c�F�[O2oUO!r�rhri�f_generator��frames r�nested�;FrameAttrsTest.test_f_generator.<locals>.t0.<locals>.nested�s���
�
����(�(�(rc3�&: �R2w�	P!3hrr
)r�s�rrX�8FrameAttrsTest.test_f_generator.<locals>.t0.<locals>.gen�s
�����h��s�)rS�close)rXrPr�s  @r�t0�+FrameAttrsTest.test_f_generator.<locals>.t0�s5���
)�
���A�
��A�w����	�����	�s	�
/�Ac�F�[O2oUO!rr�r�s r�t1�+FrameAttrsTest.test_f_generator.<locals>.t1�s���M�M�O�E��$�$�$rc3�X �[O2oUOw�	P!3hrr�r�s r�t2�+FrameAttrsTest.test_f_generator.<locals>.t2�s����M�M�O�E��#�#�#�s�(*c��N �[O2oUO!3hrr�r�s r�t3�+FrameAttrsTest.test_f_generator.<locals>.t3�s����M�M�O�E��$�$�$�s�#%zcoroutine did not exit)r@rSr5r��send�AssertionError�
StopIteration�value)	rr�r�r�r�rP�frame_gr/�exs	&        r�test_f_generator�FrameAttrsTest.test_f_generator�s���	�	%�	$�	%�
	
���"�$�����"�$��
�D��	��1�g�G��M�M�!�%�
�G�G�I�
�D��	;�
�F�F�4�L�!�!9�:�:��
�G�G�I���	'��M�M�"�(�(�A�&�&��	'�s*�B�6B'�B$�'	C�1C�2C�Cr
)r'r(r)r*r�r8r�r�r�r+r�r�s@rr�r��s#�����&-�-��
0;�0;rr�c�(`�\sQsQsnQsQsUsP!)�ReprTest�c�f�QoUOOoU2UOQ2Wvqgo[O[[22o	UO[U2QV�]*1*2UO[U2QV�]*1*2UO[U2QV�]*1*2P![cJoSOo,oS%c*SOSO2SOoJ1Po=K�Po=hh9h)c�(`�]n]oU1QkoU2!)rvc�2:�R]*o]]*]	oP!r�r
r�s  �rr�0ReprTest.test_repr.<locals>.outer.<locals>.innerr�rr
r�s  @rr�!ReprTest.test_repr.<locals>.outerr�rzshould have raisedz=^<frame at 0x[0-9a-fA-F]+, file %s, line %d, code test_repr>$z9^<frame at 0x[0-9a-fA-F]+, file %s, line %d, code outer>$z9^<frame at 0x[0-9a-fA-F]+, file %s, line %d, code inner>$)
�__code__rl�failrr4rjrr�re�escape�repr�__file__�assertRegex)
rr�offsetrr r��f_this�f_outer�f_inner�	file_reprs
&         r�	test_repr�ReprTest.test_reprs��	����.�.��		,��G�
�I�I�*�+�#)� ����I�I�d�8�n�-�	�����f��Y�%��{�3�4�	5�	
����g��U�%��z�2�3�	4�	
����g��U�%��z�2�3�	4��#!�	 ����B��F���
�
�b�k�k�*��Z�Z����	 �s#�C�	D0�&D0�'D+�=)D+�+D0r
)r'r(r)r*r�r+r�r�s@rr�r�s����
 4� 4rr�c�`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
s\O"Q2sQsQsQsQsQsQsQsQsQsUsP!)�TestFrameLocals�;c�`�QQ2oROUO]2ROUO]2U1QkoU2P!)c��\sQsQs]s]\O2OQ$]\O2OQ$QsP!)�%TestFrameLocals.test_scope.<locals>.A�=rr�r
)	r'r(r)r*rrhrirGr+r
rr�Ar�=s3���A�,-�C�M�M�O�$�$�S�)�,-�C�M�M�O�$�$�S�)rr�c�:�]o][O2OQ$][O2OQ$ROU]2RO[	2Q*]2P!)rrr�)rhrirGrx�locals)rrs �rrJ�%TestFrameLocals.test_scope.<locals>.fEsZ����A�,-�C�M�M�O�$�$�S�)�,-�C�M�M�O�$�$�S�)����Q��"����V�X�c�]�A�.r)rxrr�)rr�rJsf  r�
test_scope�TestFrameLocals.test_scope<sC���	.�	.�
	
������a� �������a� �	/�	
�rc�|```�]n]nUUU1QkoU2ROR]2ROR]2P!)rc��:�RR*o[O2OoROUQ*]2ROUQ*]2]UQ$]UQ$P!�rr��rhrirGrx)r��drrr�s  ���rrJ�'TestFrameLocals.test_closure.<locals>.fQsW����A��A��
�
��(�(�A����Q�s�V�Q�'����Q�s�V�Q�'��A�c�F��A�c�Frrw)rrJrr�sf @@r�test_closure�TestFrameLocals.test_closureMs9���
��
��	�	
������A������A�rc�`�U1Qk]n],Tt,tFD
o[2MJ	ooUOU]*Q*]2P!ttoh)c�
:�R!rr
)�ks�r�<lambda>�HTestFrameLocals.test_closure_with_inline_comprehension.<locals>.<lambda>^s���rr�)r�rx)rr��lsts&` r�&test_closure_with_inline_comprehension�6TestFrameLocals.test_closure_with_inline_comprehension]s@����
��"#��%��A�v�x���%�����Q����a�(��&s�Ac	�V�]o]o[O2OoUO[	U2]2UOUQ*U2UO[
UO22[
,QN22UO[	UO22]2UO]UO22UO[	UO22]2UOQUO22UOUOQ2]2UOQ]2UOUQ*]2UOUOQ2]2UOUOQP2P2UOUO2]2SO[
STt,tFDpDMJ	to2[
,QN22UOQU2UOUO!Q22UO[#U2[%[#UO2222UO'Q]Q]-2UOUQ*]2UOUQ*]2UO)[*29^tt^2UO']],2PPP2UOUO-Q]2]2UOUO-Q]2]2UOUQ*]2UO)[.29^tt^2UQ*PPP2P!ttoh)%fhK�9h)%fhP!9h)rr�r�	non_existr��new)rr�r�r)rr)rhrirGrx�lenr5�set�keys�values�assertIn�items�__getitem__�__setitem__�get�__len__�
assertTrue�__contains__�reversed�list�updater]�	TypeError�
setdefault�KeyError)rrr�r��keys&    r�test_as_dict�TestFrameLocals.test_as_dictcs���
��
���M�M�O�$�$������Q���#��
�
�a��f�a� �����Q�V�V�X���,C�(D�E�����Q�X�X�Z��!�,��
�
�a�����$�����Q�W�W�Y���+��
�
�h����	�*�������s�+�Q�/�	�
�
�c�1������3���#�������s��Q�'��
�
�a�e�e�K��.��5��������a�(�����Q�/�Q�c�c�Q�/�0�#�6M�2N�O��
�
�c�1��������s�+�,�����!��d�8�A�F�F�H�+=�&>�?�	���#�q�#�q�!�"�����3���#�����3���#�
�
�
�y�
)�
)�
�H�H�a��V��*�	
������c�1�-�q�1�������e�Q�/��3�����5��1�%�
�
�
�x�
(�
(�
�k�N�)�
(��#0�*�
)��)�
(�
(�s*�!M?�N�+
N�N	�
N	�N(	� N(	c� �]o]o[O2OoUOQUQ]-*2UQ]-*oUO	UQ*]2UQ]-*oUO	UQ*]2UO[29^tt^2U]*oPPP2UO[29^tt^2U],*oPPP2P!)%fhKB9h)%fhP!9h)rr�r�)rhrirGr�rxr]r	)rrr�r�r�s&    r�test_as_number�TestFrameLocals.test_as_number�s���
��
���M�M�O�$�$���
�
�c�1��Q�x�<�(�	�c�1�X�
������3���#�	�c�1�X�
������3���#�
�
�
�y�
)�
)�
��F�A�*�
�
�
�y�
)�
)��Q�C��A�*�
)�*�
)��
)�
)�
)�s$�%
C)�C<�)C9	�2C9	�<D
	�D
	c��[O2Oo]U]$UOU]*]2P!r�r��rr�s& r�test_non_string_key�#TestFrameLocals.test_non_string_key�s0���M�M�O�$�$����!������1��q�!rc�$`�U1QkoU2P!)c��:�],Tt,tFD"o[O2OMJ$	to]*o]UQ$]UQ$ROW]2ROW]2]o]oP!ttoh)r�br/r�)rrGr/rs   �rrJ�1TestFrameLocals.test_write_with_hidden.<locals>.f�sk���;<�#�>�#�Q��
�
��0�0�#�>�q�A�H��H�S�M��H�S�M����Q��"����Q��"��A��A��
?s�*A/r
�rrJsf r�test_write_with_hidden�&TestFrameLocals.test_write_with_hidden�s���	�	
�rc��[2oQO,QN2o[O2OoUQ*UQ$UOUQ2P!)�.r��oza.b.c��arr/)�object�joinrhrirGrx)rrr�rGs&   r�test_local_objects�"TestFrameLocals.test_local_objects�sE���H���H�H�_�%���=�=�?�+�+�� ��
���
�����G�$rc��]o[O2OoUO2oUO	U[
2UO
UQ*]2]UQ$UO
U]2P!)rr)rhrirG�copy�assertIsInstance�dictrx)rrr��d_copys&   r�	test_copy�TestFrameLocals.test_copy�s`��
���M�M�O�$�$����������f�d�+�������a�(���s������A�rc��QoU2P!)c��[O2OoUOU2UOU2UOU2P!r)rhrirGr)rGs rrJ�0TestFrameLocals.test_update_with_self.<locals>.f�s7���}�}��/�/�H��O�O�H�%��O�O�H�%��O�O�H�%rr
rs& r�test_update_with_self�%TestFrameLocals.test_update_with_self�s��	&�
	
�rc��]o[O2oUO[UO2[[UO222P!r)rhrirxr�rGr))rrr�s&  rr��TestFrameLocals.test_repr�s9��
���
�
�������e�n�n�-�t�D����4H�/I�Jrc��]o[O2OoUO[Q29^tt^2UQPPP2UO[29^tt^2UO
Q2PPP2UO[Q29^tt^2UQPPP2UO[29^tt^2UO2PPP2UO[29^tt^2UO
Q2PPP2UO[29^tt^2UO
QP2PPP2]UQ$]UQ$UO[29^tt^2UO
Q2PPP2UQUOUO
Q2]2UOQU2UOQU2UOUO
Q]2]2P!)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCKi9h)%fhCKF9h)%fhCK"9h)%fhK�9h)rr�zlocal variablesr�m�n)rhrirGrUrr]�pop�
ValueErrorr�rrx�assertNotIn�rrr�s&  r�test_delete�TestFrameLocals.test_delete�s���
���M�M�O�$�$���
#�
#�H�k�
:�
:��+��;��
�
�x�
(�
(�
�E�E�+��)��
#�
#�J�0A�
B�
B��#��C��
�
�~�
.�
.�
�G�G�I�/��
�
�z�
*�
*�
�E�E�#�J�+��
�
�z�
*�
*�
�E�E�#�t��+���#����#��
�
�
�x�
(�
(�
�E�E�+��)�
�c�F�������s��Q�'�����a� �����a� �������s�A���*�?;�
:�
:��)�
(�
(��C�
B�
B��/�
.�
.��+�
*�
*��+�
*�
*��)�
(�s~�H�*H�"H(�H<�I�8I$�:I8�H	�	H	�H%	�H%	�(H9	�1H9	�<I
	�I
	�I!	�I!	�$I5	�-I5	�8J	�J	c��[O2Oo[OV[O
Q22P!)�P)rhrirGr�check_sizeof�calcobjsize)r�proxys& r�test_sizeof�TestFrameLocals.test_sizeof�s.���
�
��(�(�����T�'�*=�*=�c�*B�Crc��]o[O2OoUO[29^tt^2[
O
U2PPP2UO[29^tt^2[
OU2PPP2P!)%fhKN9h)%fhP!9hr)rhrirGr]r	r'�deepcopyr:s&  r�test_unsupport�TestFrameLocals.test_unsupport�su��
���M�M�O�$�$��
�
�
�y�
)�
)��I�I�a�L�*��
�
�y�
)�
)��M�M�!��*�
)�*�
)��*�
)�
)�s$�B�<B0�B-	�&B-	�0C	�9C	c��]o[O2OoUOU[2Sc*]6�c#Q9dvoUOU]2QoLQoUOUQ2P!)r�mapping�other�r)rhrirGr(rrx)rrr�r��kinds&    r�test_is_mapping�TestFrameLocals.test_is_mapping�sf��
���M�M�O�$�$�����a��)������ � ���*� ����������y�)rc�V�QQ[2oQQ2oUQ2U2Q1!)c��\sQsQsQsP!)�6TestFrameLocals._x_stringlikes.<locals>.StringSubclass�r
r&r
rr�StringSubclassrQr-rrSc�.`�\sQsQsnQsQsQsUsP!)�1TestFrameLocals._x_stringlikes.<locals>.ImpostorX�	c��[Q2!rK)�hash�rs&r�__hash__�:TestFrameLocals._x_stringlikes.<locals>.ImpostorX.__hash__
s���C�y� rc��UQ6H!rKr
)rrJs&&r�__eq__�8TestFrameLocals._x_stringlikes.<locals>.ImpostorX.__eq__
s����|�#rr
)r'r(r)r*rZr]r+r�r�s@r�	ImpostorXrU	s����
!�
$�
$rr_r)�str)rrSr_s&  r�_x_stringlikes�TestFrameLocals._x_stringlikess.��	�S�	�	$�	$��c�"�I�K��4�4rc
��QoUO2FD�oUO[U2OQ59^tt^2UU2vq4o,QNoQQQ]QU-oUO	UO2U2UO	VW2UO	V62UO	VG2PPP2J�	P!)%fhJ�9h)c��]o[O2Oo]V $[UO	22[U2U1!r)rhrirGrr�r)��objrrAs&  rrJ�?TestFrameLocals.test_proxy_key_stringlikes_overwrite.<locals>.fsA���A��M�M�O�,�,�E��E�J��U�Z�Z�\�"��U����
r��clsrfrrAre)ra�subTest�typer'rxr�)rrJrf�
keys_snapshot�proxy_snapshotrA�
expected_keys�
expected_dicts&       r�$test_proxy_key_stringlikes_overwrite�4TestFrameLocals.test_proxy_key_stringlikes_overwrites���	��&�&�(�C����$�s�)�"4�"4��5�5�78��v�4�
�u� 5�
�!&��S�!�W�e� D�
�� � �����
�>�� � ��6�� � ��?�� � ��?�6�5�)�5�5�5�s�A+B?	�?C
�C
c	��`�U1QkoRO2FDAoRO[U2OQ59^tt^2UU2PPP2JC	P!)%fhJX9h)c�x:�[O2Oo]V$ROW]2]oP!r�r�)rfrArrs&  �rrJ�ATestFrameLocals.test_proxy_key_stringlikes_ftrst_write.<locals>.f)s0����M�M�O�,�,�E��E�J����Q��"��Arrh)rarjrkr')rrJrfsf  r�&test_proxy_key_stringlikes_ftrst_write�6TestFrameLocals.test_proxy_key_stringlikes_ftrst_write(sQ���	��&�&�(�C����$�s�)�"4�"4��5�5��#��6�5�)�5�5�5�s�
	A!	�!A2
�*A2
c�6�QQ[2oQQ2o[O2OoUQ2U21FD�oUO	[U2OQ59^tt^2UO[29^tt^2V4*PPP2UO[29^tt^2]V4$PPP2PPP2J�	P!)%fhKH9h)%fhK19h)%fhJ�9h)c��\sQsQsPsQsP!)�BTestFrameLocals.test_proxy_key_unhashables.<locals>.StringSubclass�4r
�r'r(r)r*rZr+r
rrrSry4����HrrSc��\sQsQsPsQsP!)�BTestFrameLocals.test_proxy_key_unhashables.<locals>.ObjectSubclass�7r
r{r
rr�ObjectSubclassr~7r|rr�rrh)	r`rhrirGrjrkr'r]r	)rrSr�rArfs&    r�test_proxy_key_unhashables�*TestFrameLocals.test_proxy_key_unhashables3s���	�S�	�	�	��
�
��(�(��!�#�&��(8�8�C����$�s�)�"4�"4��5�5��&�&�y�1�1��J�2��&�&�y�1�1�!"�E�J�2�6�5�9�1�1��1�1��6�5�5�sN�:D	�	C!
�!%D	�C4
�D	�!C1�*C1�,D	�4D�=D�?D	�D
�D
c���[[]2Tt,tFD"o[O2OMJ$	to]*2oUOUOQ2QoUU22oUOUQ]Q]-2UO[29^tt^2U2PPP2UO[29^tt^2U]{2PPP2UO[29^tt^2U[O2Q5PPP2P!ttoh)%fhK�9h)%fhKl9h)%fhP!9h)r�FrameLocalsProxyc�6�]o]o[O2!r�rhrir�s  r�
make_frame�4TestFrameLocals.test_constructor.<locals>.make_frameHs���A��A��=�=�?�"rrr�r�)	rk�rangerhrirGrxr'r]r	)rrr�r�rAs&    r�test_constructor� TestFrameLocals.test_constructorCs���*/��(�!4�*2�Q�"%����!9�!9�*2�!4�45�!7�8�����)�2�2�4F�G�	#�
!���.�������a��a� 0�1��
�
�y�
)�
)���*�
�
�
�y�
)�
)��S�!�*�
�
�
�y�
)�
)��3�=�=�?�3�*�
)��#!4�*�
)��
)�
)��
)�
)�
)�s;�*D,�*D1�	E�E�1E	�:E	�E	�
E	�E(	� E(	c�J`�U1QkoQnUOU2]2P!)c�&:�,QNo,QNoRU2!)r)rr��)rurv�r
)�xs�ysrPs  �rrJ�0TestFrameLocals.test_overwrite_locals.<locals>.f[s����B��B��R�5�Lrc��[O2oPUOOQ$PUOOQ$U]*!)Nr�r�)rhrir^rG)r�rJs& rrP�0TestFrameLocals.test_overwrite_locals.<locals>.g`s>���
�
��A�&*�A�H�H���d�#�&*�A�H�H���d�#��a�5�Lrrw)rrJrPs& @r�test_overwrite_locals�%TestFrameLocals.test_overwrite_localsXs!���	�
	�	
�����a� rr
)r'r(r)r*r�r�r�r
rrrr$r+r0r�r;rr�rBrFrMrarprur�r�r�r+r�r�s@rr�r�;s������"� )�$�L�"�
	�%���K�$+�L
���D��D��
*�5�@�,	�#� 4�*!�!rr�c��`�\sQsQsnQs\s\OP	Q2Q2s\OP	Q2Q2s	\OP	Q2Q2s
\OP	Q	2Q
2s\OP	Q2Q2s\OP	Q
2Q2s
Qs\OP	Q2Q2sQs\OP	Q2Q2sQsUsP!)�FrameLocalsProxyMappingTests�ic��QoU2!)c�B�[O2O!r)rhrirGr
rr�_f�+FrameLocalsProxyMappingTests._f.<locals>._fms���=�=�?�+�+�+rr
)�argsrr�s*, rr��FrameLocalsProxyMappingTests._fls��	,��t�rz:Locals proxies for different frames never compare as equalc��P!rr
rYs&rr��-FrameLocalsProxyMappingTests.test_constructorr���rz&Unlike a mapping: del proxy[key] failsc��P!rr
rYs&r�
test_write�'FrameLocalsProxyMappingTests.test_writevr�rz"Unlike a mapping: no proxy.popitemc��P!rr
rYs&r�test_popitem�)FrameLocalsProxyMappingTests.test_popitemzr�rzUnlike a mapping: no proxy.popc��P!rr
rYs&r�test_pop�%FrameLocalsProxyMappingTests.test_pop~r�rz Unlike a mapping: no proxy.clearc��P!rr
rYs&r�
test_clear�'FrameLocalsProxyMappingTests.test_clear�r�rz#Unlike a mapping: no proxy.fromkeysc��P!rr
rYs&r�
test_fromkeys�*FrameLocalsProxyMappingTests.test_fromkeys�r�rc�L�[OOU2UOQ]Q]-2oUO	UQ*]2UO	UQ*]2]UQ$]UQ$UO	UQ*]2UO	UQ*]2P!r )r�BasicTestMappingProtocol�test_getitem�
_full_mappingrxrs& rr��)FrameLocalsProxyMappingTests.test_getitem�s����.�.�;�;�D�A�����Q��Q�/�0������3���#�����3���#���#����#������3���#�����3���#rz!Unlike a mapping: no proxy.updatec��P!rr
rYs&r�test_update�(FrameLocalsProxyMappingTests.test_update�r�rc	�l�UO]]]]]]-2oUOUO2]]]]]]-2UO2oUOUO2U2UO	[
UOP2UO
UO2[2P!r)r�rxr'�_empty_mappingr]r	r(r)rs& rr+�&FrameLocalsProxyMappingTests.test_copy�s�������!�Q�q�!�A��/���������A�a��1�a��?�3����!���������1�%����)�Q�V�V�T�2����a�f�f�h��-rc��P!rr
rYs&r�test_eq�$FrameLocalsProxyMappingTests.test_eq�r�rr
)r'r(r)r*r��	type2test�unittest�skipIfr�r�r�r�r�r�r�r�r+r�r+r�r�s@rr�r�is������I�
�_�_�T�W�X�
�Y�
��_�_�T�C�D�
�E�
��_�_�T�?�@�
�A�
��_�_�T�;�<�
�=�
��_�_�T�=�>�
�?�
��_�_�T�@�A�
�B�
�$��_�_�T�>�?�
�@�
�.��_�_�T�W�X�
�Y�
rr�c�(`�\sQsQsnQsQsUsP!)�
TestFrameCApi�c��]o[OQ2oUOOoUOUmU2oUO
[U2[2UOUQ*]2]UQ$UOU]2UOOoUOUmU2oUO
[U2[2UOU[22UOOoUOUmU2oUOU[2UOOo	UO,U	mUOU	m["O$2o
U	U
2oUO
UQ*]2]UQ$UOU]2P!)r�ctypesr)r�
import_module�	pythonapi�PyEval_GetFrameLocals�	py_object�restyperrkr)rx�PyEval_GetFrameGlobalsr5�globals�PyEval_GetFrameBuiltins�__builtins__�PyFrame_GetLocals�argtypesrhri)rrr�r��frame_localsr��
frame_globalsr��frame_builtinsr�r�rGs&           r�
test_basic�TestFrameCApi.test_basic�sz��
���,�,�X�6�� &� 0� 0� F� F��(.�(8�(8��%�,�.������\�*�D�1�����c�*�A�.���S������A��!'�!1�!1�!H�!H��)/�)9�)9��&�.�0�
�����]�+�T�2��
�
�m�W�Y�/�"(�"2�"2�"J�"J��*0�*:�*:��'�0�2�������6�"�,�,�>�>��&,�&6�&6�%7��"�$*�$4�$4��!��
�
���$�U�+�������
�q�)����
�����A�rr
)r'r(r)r*r�r+r�r�s@rr�r��s�����rr�c�z`�\sQsQsnQs\O\O2Q22s	Qs
QsUsP!)�TestIncompleteFrameAreInvisible��c�^�[OQ[8Q02o[QU2P!)z�
            import gc

            gc.set_threshold(1,1,1)
            class GCHello:
                def __del__(self):
                    print("Destroyed from gc")

            def gen():
                yield

            fd = open(zy)
            l = [fd, GCHello()]
            l.append(l)
            del fd
            del l
            gen()
        z-c)�textwrap�dedentr�r)r�codes& r�test_issue95818�/TestIncompleteFrameAreInvisible.test_issue95818�s2�����$� �l�#	� �
��$	��t�$rc�V``�U1QkQ2nU1QkQ[O2oPnU2oUO2UO2UO	R2Rd?UOROUOO2ROnJBP!)c�0:`�\sQsQsnU1QksQsUsP!)�TTestIncompleteFrameAreInvisible.test_sneaky_frame_object_teardown.<locals>.SneakyDel��c�4:�[O2nP!rr�)r�sneaky_frame_objects&�r�__del__�\TestIncompleteFrameAreInvisible.test_sneaky_frame_object_teardown.<locals>.SneakyDel.__del__�s���'*�m�m�o�#rr
)r'r(r)r*r�r+r�)r�r�s@�r�	SneakyDelr��s����	
6�	
6rr�c�0:`�\sQsQsnU1QksQsUsP!)�WTestIncompleteFrameAreInvisible.test_sneaky_frame_object_teardown.<locals>.SneakyThread��c�:�R2oP!rr
)rr1r�s& �r�run�[TestIncompleteFrameAreInvisible.test_sneaky_frame_object_teardown.<locals>.SneakyThread.run�s
����k�rr
)r'r(r)r*r�r+r�)r�r�s@�r�SneakyThreadr��s����
"�
"rr�)
�	threading�Thread�startr#r?r3rFr�r�r^)rr�r�r�r�s&  @@r�!test_sneaky_frame_object_teardown�ATestIncompleteFrameAreInvisible.test_sneaky_frame_object_teardown�s����
	6�
	6�		"�9�+�+�		"�#���N��	���	�	����	
���0�1�!�-����#�*�*�L�,<�,<�,E�,E�
�#6�"<�"<��	.rc�H`�QQ2nU1Qko[O29^tt^2o[OU2oUO	UO
O[2PPP2UOW22P!)%fhK(9h)c��\sQsQsQsP!)�ZTestIncompleteFrameAreInvisible.test_entry_frames_are_invisible_during_teardown.<locals>.C�r
r&r
rrr,r�r-rr,c�J:�R2o[OU[2!r)r0r1�exec)r1r,s �rrJ�ZTestIncompleteFrameAreInvisible.test_entry_frames_are_invisible_during_teardown.<locals>.fs����#�C�
�;�;�s�D�)�)r)	r�catch_unraisable_exception�operator�callr5�
unraisable�exc_typer	r@)rrJ�catcher�weakr,s&   @r�/test_entry_frames_are_invisible_during_teardown�OTestIncompleteFrameAreInvisible.test_entry_frames_are_invisible_during_teardown
sm���	(�	(�	*��
/�
/�
1�
1�W��=�=��#�D��M�M�'�,�,�5�5�y�A�	2�
	
���$�&�!�2�
1�s�AB�B!	�B!	r
)
r'r(r)r*r�rr�r�requires_working_threadingr�rr+r�r�s@rr�r��s@����%�,
����0�0�2�%=�3��%=�N"�"rr��__main__)r'r�r�rhr�r�r�r0�	_testcapi�ImportError�collections.abcrrsr�test.supportrr�test.support.script_helperrr�TestCaser	r�r�r��TestHashMappingProtocolr�r�r�r'�mainr
rr�<module>rs�����	�
�������$��8�7��]&��!�!�]&�@\;�X�&�&�\;�~%4�x� � �%4�Nk!�h�'�'�k!�\	<
�=�#H�#H�<
�~�H�%�%��BS"�h�&7�&7�S"�l�z���M�M�O���i���I��s�C6�6D�<D�D

Youez - 2016 - github.com/yon3zu
LinuXploit