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 :  /Python313/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python313/Lib/test/__pycache__/test_sys_setprofile.cpython-313.opt-1.pyc
�

��i=��T�SSKrSSKrSSKrSSKr"SS\R5r"SS5r"SS\5r"SS	\R5r"S
S\5r	"SS
\5r
SrSr\"\5r
SSjrSr"SS\R5r\S:Xa\R$"5 gg)�Nc�,�\rSrSrSrSrSrSrSrg)�TestGetProfile�c�0�[R"S5 g�N��sys�
setprofile��selfs �-C:\Python313\\Lib\test\test_sys_setprofile.py�setUp�TestGetProfile.setUp������t��c�0�[R"S5 grrrs r
�tearDown�TestGetProfile.tearDownrrc�L�UR[R"55 gr)�assertIsNoner	�
getprofilers r
�
test_empty�TestGetProfile.test_emptys�����#�.�.�*�+rc��Sn[R"U5 UR[R"5U5 g)Nc��gr���argss r
�fn�&TestGetProfile.test_setget.<locals>.fn���r)r	r
�assertIsr)rrs  r
�test_setget�TestGetProfile.test_setgets*��	�	���r���
�
�c�n�n�&��+rrN)	�__name__�
__module__�__qualname__�__firstlineno__rrrr#�__static_attributes__rrr
rrs����,�,rrc�0�\rSrSrSrSrSSjrSrSrg)	�HookWatcher�c� �/Ul/Ulgr)�frames�eventsrs r
�__init__�HookWatcher.__init__s�������rc�N�US:XdUS:XdUS:XaURX!U5 gg)N�call�return�	exception��	add_event�r�frame�event�args    r
�callback�HookWatcher.callbacks,���V�O��� ���#��N�N�5��-�$rNc�<�Uc[R"S5nURRU5nURR
XA[U5U45 g![a3 [UR5nURR
U5 Ndf=f)zAdd an event to the log.N�)	r	�	_getframer.�index�
ValueError�len�appendr/�ident)rr:r9r;�framenos     r
r7�HookWatcher.add_event#s~���=��M�M�!�$�E�	&��k�k�'�'��.�G�
	
�����G�E�%�L�#�>�?��	�	&��$�+�+�&�G��K�K���u�%�	&�s�A�:B�Bc���[URR5[[5/nSUlURVs/sHo"SU;dM
UPM sn$s snf)zRemove calls to add_event().N�)rEr7�__func__r.r/)r�
disallowed�items   r
�
get_events�HookWatcher.get_events0sK���D�N�N�3�3�4�e�E�l�C�
����!%���J���Q��z�0I���J�J��Js�A�A)r/r.)NN)	r%r&r'r(r0r<r7rMr)rrr
r+r+s���.�@�Krr+c�J�\rSrSrSrSrSrSrSrSr	\\\\	\	\	S.r
S	rg
)�ProfileSimulator�8c�H�Xl/Ul[RU5 gr)�testcase�stackr+r0)rrSs  r
r0�ProfileSimulator.__init__9s�� �
���
����T�"rc�.�URU"X5 gr)�dispatchr8s    r
r<�ProfileSimulator.callback>s���
�
�e��T�)rc�^�URSU5 URRU5 g)Nr3)r7rTrD�rr9s  r
�
trace_call�ProfileSimulator.trace_callBs"�����v�u�%��
�
���%� rc�\�URSU5 URR5 g)Nr4)r7rT�poprZs  r
�trace_return�ProfileSimulator.trace_returnFs�����x��'��
�
���rc�:�URRS5 g)Nz2the profiler should never receive exception events)rS�failrZs  r
�trace_exception� ProfileSimulator.trace_exceptionJs���
�
���@�	Brc��grrrZs  r
�
trace_pass�ProfileSimulator.trace_passNs��r)r3r5r4�c_call�c_return�c_exception)rTrSN)r%r&r'r(r0r<r[r_rcrfrWr)rrr
rPrP8s<��#�
*�!��B�
��$����!�

�HrrPc��\rSrSrSSjrSrg)�TestCaseBase�[c
��[XR55nU(aHXB:waBURS[R"U5<S[R"U5<35 ggUVVVVs/sH
upVpxXVU4PM snnnnU:waBURS[R"U5<S[R"U5<35 ggs snnnnf)NzExpected events:
z
Received events:
)�capture_events�new_watcherrb�pprint�pformat)	r�callable�expected�
check_argsr/rFr:rEr;s	         r
�check_events�TestCaseBase.check_events\s�����*:�*:�*<�=����!��	�	�#�^�^�H�5�v�~�~�f�7M�O�P�"�KQ�Q�&�,F�G�E���'�&�Q�U]�]��	�	�#�^�^�H�5�v�~�~�f�7M�O�P�^��Qs�0C
rN)F)r%r&r'r(rvr)rrr
rlrl[s��	Prrlc�n�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrSrSrg)�ProfileHookTestCase�hc��[5$r)r+rs r
rp�ProfileHookTestCase.new_watcheris
���}�rc�T�Sn[U5nURUSSU4SSU4/5 g)Nc��grr��ps r
�f�*ProfileHookTestCase.test_simple.<locals>.fmr!rr?r3r4�rErv�rr��f_idents   r
�test_simple�ProfileHookTestCase.test_simplel�8��	���(�����!�q�&�'�2� �(�G�4� �	!rc�T�Sn[U5nURUSSU4SSU4/5 g)Nc��SS- g�Nr?rrrs r
r��-ProfileHookTestCase.test_exception.<locals>.fu�	��
�a�Crr?r3r4r�r�s   r
�test_exception�"ProfileHookTestCase.test_exceptiont�8��	���(�����!�q�&�'�2� �(�G�4� �	!rc�T�Sn[U5nURUSSU4SSU4/5 g)Nc��SS- g! g=fr�rrs r
r��4ProfileHookTestCase.test_caught_exception.<locals>.f}����1����D����r?r3r4r�r�s   r
�test_caught_exception�)ProfileHookTestCase.test_caught_exception|�:��	���(�����!�q�&�'�2� �(�G�4� �	!rc�T�Sn[U5nURUSSU4SSU4/5 g)Nc��SS- g! g=fr�rrs r
r��;ProfileHookTestCase.test_caught_nested_exception.<locals>.f�r�r�r?r3r4r�r�s   r
�test_caught_nested_exception�0ProfileHookTestCase.test_caught_nested_exception�r�rc�T�Sn[U5nURUSSU4SSU4/5 g)Nc��SS- gr�rrs r
r��4ProfileHookTestCase.test_nested_exception.<locals>.f�r�rr?r3r4r�r�s   r
�test_nested_exception�)ProfileHookTestCase.test_nested_exception�s:��	���(�����!�q�&�'�2� !�(�G�4�	 �	!rc�^�SmU4Sjn[T5n[U5nURUSSU4SSU4SSU4SSU4SSU4SSU4/5 g)Nc��SS- gr�rrs r
r��>ProfileHookTestCase.test_exception_in_except_clause.<locals>.f�r�rc�F>�T"U5 g! T"U5 g! g=f=frr�r�r�s �r
�g�>ProfileHookTestCase.test_exception_in_except_clause.<locals>.g�s#���
��!���
��q�T����s�� ��� � r?r3rIr4�r��rr�r��g_identr�s    @r
�test_exception_in_except_clause�3ProfileHookTestCase.test_exception_in_except_clause�sq���	�	���(����(�����!�q�&�'�2� �&�'�2� �(�G�4� �&�'�2� �(�G�4� �(�G�4� �	!rc
�^�SmU4Sjn[T5n[U5nURUSSU4SSU4SSU4SSU4SSU4/5 g)Nc��SS- gr�rrs r
r��9ProfileHookTestCase.test_exception_propagation.<locals>.f�r�rc�d>�T"U5 URS5 g!URS5 f=f)N�falling throughr6r�s �r
r��9ProfileHookTestCase.test_exception_propagation.<locals>.g�s%����1���[�[�!2�3��Q�[�[�!2�3�s��/r?r3rIr4r�r�r�s    @r
�test_exception_propagation�.ProfileHookTestCase.test_exception_propagation�sh���	�	4���(����(�����!�q�&�'�2� �&�'�2� �(�G�4� �"3�W�=� �(�G�4�	 �	!rc�T�Sn[U5nURUSSU4SSU4/5 g)Nc�&�SS- g! SS- g=fr�rrs r
r��/ProfileHookTestCase.test_raise_twice.<locals>.f�s���1����A�a�C�s��r?r3r4r�r�s   r
�test_raise_twice�$ProfileHookTestCase.test_raise_twice�s:��	���(�����!�q�&�'�2� �(�G�4� �	!rc�T�Sn[U5nURUSSU4SSU4/5 g)Nc��SS- g! e=fr�rrs r
r��1ProfileHookTestCase.test_raise_reraise.<locals>.f�s���1����E�s��
r?r3r4r�r�s   r
�test_raise_reraise�&ProfileHookTestCase.test_raise_reraise�s:��	���(�����!�q�&�'�2� �(�G�4� �	!rc�T�Sn[U5nURUSSU4SSU4/5 g)Nc��[5er)�	Exceptionrs r
r��)ProfileHookTestCase.test_raise.<locals>.f�s
���+�rr?r3r4r�r�s   r
�
test_raise�ProfileHookTestCase.test_raise�s8��	���(�����!�q�&�'�2� �(�G�4� �	!rc�$^^^	^
�SmU4SjmU4Sjm	U	4Sjm
U
4Sjn[T5n[T5n[T	5n[T
5n[U5nURUSSU4SSU4S	SU4S
SU4SSU4SSU4S
SU4S	SU4SSU4SSU4/
5 g)
Nc��SS- gr�rrrr
r��5ProfileHookTestCase.test_distant_exception.<locals>.f�r�rc�>�T"5 grr�r�s�r
r��5ProfileHookTestCase.test_distant_exception.<locals>.g�����
�Crc�>�T"5 grr�r�s�r
�h�5ProfileHookTestCase.test_distant_exception.<locals>.h�r�rc�>�T"5 grr�r�s�r
�i�5ProfileHookTestCase.test_distant_exception.<locals>.i�r�rc�>�T"5 grr�r�r�s �r
�j�5ProfileHookTestCase.test_distant_exception.<locals>.j�r�rr?r3rIr���r4r��rr�r�r��h_ident�i_ident�j_identr�r�r�r�s       @@@@r
�test_distant_exception�*ProfileHookTestCase.test_distant_exception�����	�	�	�	�	���(����(����(����(����(�����!�q�&�'�2� �&�'�2� �&�'�2� �&�'�2� �&�'�2� �(�G�4� �(�G�4� �(�G�4� �(�G�4� �(�G�4�
 �
	!rc
�^�SmU4Sjn[T5n[U5nURUSSU4SSU4SSU4SSU4SSU4SSU4SSU4SSU4/5 g)Nc3�8# �[S5HnUv� M	 g7f�NrI��range�r�s r
r��-ProfileHookTestCase.test_generator.<locals>.f������1�X�������c�">�T"5HnM grr�r�r�r�s  �r
r��-ProfileHookTestCase.test_generator.<locals>.g������S���rr?r3rIr4r�r�s    @r
�test_generator�"ProfileHookTestCase.test_generator�s����	�	���(����(�����!�q�&�'�2� �&�'�2� �(�G�4� �&�'�2� �(�G�4� !�&�'�2� �(�G�4� �(�G�4� �	!rc�^�SmU4Sjn[T5n[U5nURUSSUS4SSUS4SSUS4SSUS4SSUS4SSUS4/SS	9 g)
Nc3�8# �[S5HnUv� M	 g7fr�r�r�s r
r��8ProfileHookTestCase.test_unfinished_generator.<locals>.fr�r�c�&>�[T"55 gr)�nextr�s �r
r��8ProfileHookTestCase.test_unfinished_generator.<locals>.gs������Irr?r3rIr4rT)rur�r�s    @r
�test_unfinished_generator�-ProfileHookTestCase.test_unfinished_generators����	�	���(����(�����!�q�&�'�4�8� �&�'�4�8� �(�G�Q�7� �&�'�4�8� �(�G�T�:� �(�G�T�:� �-1�
	�	2rc
�^�SmU4Sjn[T5n[U5nURUSSU4SSU4SSU4SSU4SSU4SSU4SSU4SSU4/5 g)Nc3�8# �[S5HnUv� M	 g7fr�r�r�s r
r��2ProfileHookTestCase.test_stop_iteration.<locals>.fr�r�c�">�T"5HnM grrr�s  �r
r��2ProfileHookTestCase.test_stop_iteration.<locals>.gr�rr?r3rIr4r�r�s    @r
�test_stop_iteration�'ProfileHookTestCase.test_stop_iterations����	�	���(����(�����!�q�&�'�2� �&�'�2� �(�G�4� �&�'�2� �(�G�4� �&�'�2� �(�G�4� �(�G�4�
 �
	!rrN)r%r&r'r(rpr�r�r�r�r�r�r�r�r�r�r�r�r�r�r)rrr
ryryhsM���!�!�!�!�	!�!�&
!�!�!�!�!�8!�,2�"!rryc�P�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
Srg
)�ProfileSimulatorTestCasei.c��[U5$r)rPrs r
rp�$ProfileSimulatorTestCase.new_watcher/s
����%�%rc�T�Sn[U5nURUSSU4SSU4/5 g)Nc��grrrs r
r��/ProfileSimulatorTestCase.test_simple.<locals>.f3r!rr?r3r4r�r�s   r
r��$ProfileSimulatorTestCase.test_simple2r�rc�T�Sn[U5nURUSSU4SSU4/5 g)Nc��SS- gr�rrs r
r��8ProfileSimulatorTestCase.test_basic_exception.<locals>.f;r�rr?r3r4r�r�s   r
�test_basic_exception�-ProfileSimulatorTestCase.test_basic_exception:r�rc�T�Sn[U5nURUSSU4SSU4/5 g)Nc��SS- g! g=fr�rrs r
r��9ProfileSimulatorTestCase.test_caught_exception.<locals>.fCr�r�r?r3r4r�r�s   r
r��.ProfileSimulatorTestCase.test_caught_exceptionBr�rc�$^^^	^
�SmU4SjmU4Sjm	U	4Sjm
U
4Sjn[T5n[T5n[T	5n[T
5n[U5nURUSSU4SSU4S	SU4S
SU4SSU4SSU4S
SU4S	SU4SSU4SSU4/
5 g)
Nc��SS- gr�rrrr
r��:ProfileSimulatorTestCase.test_distant_exception.<locals>.fLr�rc�>�T"5 grrr�s�r
r��:ProfileSimulatorTestCase.test_distant_exception.<locals>.gNr�rc�>�T"5 grrr�s�r
r��:ProfileSimulatorTestCase.test_distant_exception.<locals>.hPr�rc�>�T"5 grrr�s�r
r��:ProfileSimulatorTestCase.test_distant_exception.<locals>.iRr�rc�>�T"5 grrr�s �r
r��:ProfileSimulatorTestCase.test_distant_exception.<locals>.jTr�rr?r3rIr�r�r�r4r�r�s       @@@@r
r��/ProfileSimulatorTestCase.test_distant_exceptionKr�rc�`^�0mU4Sjn[U5nURUSSU4SSU4/5 g)Nc�6>�[R"0S40TD6 g�N�*��dict�get�r��kwargss �r
r��7ProfileSimulatorTestCase.test_unbound_method.<locals>.fjs����H�H�R��&�v�&rr?r3r4r��rr�r�r&s   @r
�test_unbound_method�,ProfileSimulatorTestCase.test_unbound_methodhs>�����	'���(�����!�q�&�'�2� �(�G�4�6�	7rc�T�Sn[U5nURUSSU4SSU4/5 g)Nc�,�[R5 grr"rs r
r��?ProfileSimulatorTestCase.test_unbound_method_no_args.<locals>.frs���H�H�Jrr?r3r4r�r�s   r
�test_unbound_method_no_args�4ProfileSimulatorTestCase.test_unbound_method_no_argsqs8��	���(�����!�q�&�'�2� �(�G�4�6�	7rc�T�Sn[U5nURUSSU4SSU4/5 g)Nc�8�[R[S5 gr �r#r$�printrs r
r��DProfileSimulatorTestCase.test_unbound_method_invalid_args.<locals>.fzs���H�H�U�B�rr?r3r4r�r�s   r
� test_unbound_method_invalid_args�9ProfileSimulatorTestCase.test_unbound_method_invalid_argsys8��	 ���(�����!�q�&�'�2� �(�G�4�6�	7rc�`^�0mU4Sjn[U5nURUSSU4SSU4/5 g)Nc�2>�[R"S0TD6 g)Nrr"r%s �r
r��GProfileSimulatorTestCase.test_unbound_method_no_keyword_args.<locals>.f�s����H�H��v�rr?r3r4r�r(s   @r
�#test_unbound_method_no_keyword_args�<ProfileSimulatorTestCase.test_unbound_method_no_keyword_args�s>�����	���(�����!�q�&�'�2� �(�G�4�6�	7rc�`^�0mU4Sjn[U5nURUSSU4SSU4/5 g)Nc�>>�[R"[S40TD6 gr r2r%s �r
r��LProfileSimulatorTestCase.test_unbound_method_invalid_keyword_args.<locals>.f�s����H�H�U�B�)�&�)rr?r3r4r�r(s   @r
�(test_unbound_method_invalid_keyword_args�AProfileSimulatorTestCase.test_unbound_method_invalid_keyword_args�s>�����	*���(�����!�q�&�'�2� �(�G�4�6�	7rrN)r%r&r'r(rpr�rr�r�r)r.r5r:r?r)rrr
rr.s4��&�!�!�!�!�:7�7�7�7�7rrc��[US5(a
URnOURnURUR4$)N�f_code)�hasattrrB�__code__�co_firstlineno�co_name)�function�codes  r
rErE�s8���x��"�"������ � ��������,�,rc�"�U"U5 g! g=frr)r�r�s  r
�protectrJ�s��	
�1����D�s�
�c��Uc
[5n[R"5n[R"5 [R
"UR5 [X5 [R
"S5 U(a[R"5 UR5SS$!U(a[R"5 ff=f)Nr?���)
r+�gc�	isenabled�disabler	r
r<rJ�enablerM)rsr��old_gcs   r
roro�s����y��M���\�\�^�F��J�J�L�����q�z�z�"�������t����I�I�K��<�<�>�!�B������I�I�K��s�AB)�)Cc�B�SSKnUR"[U55 g)Nr)rqro)rsrqs  r
�show_eventsrS�s���
�M�M�.��*�+rc�2�\rSrSrSrSrSrSrSrSr	g)	�
TestEdgeCasesi�c��UR[R[R"55 [R"S5 gr)�
addCleanupr	r
rrs r
r�TestEdgeCases.setUp�s'�����������(8�9����t�rc��^�SnSm"U4SjS5n[R"U"55 [R"U5 UR[R"5T5 g)Nc��grrrs r
�foo�*TestEdgeCases.test_reentrancy.<locals>.foo����rc��grrrs r
�bar�*TestEdgeCases.test_reentrancy.<locals>.bar�r]rc�(>�\rSrSrSrU4SjrSrg)�(TestEdgeCases.test_reentrancy.<locals>.Ai�c��grr)rrs  r
�__call__�1TestEdgeCases.test_reentrancy.<locals>.A.__call__�s��rc�2>�[R"T5 grr)rr_s �r
�__del__�0TestEdgeCases.test_reentrancy.<locals>.A.__del__�s������s�#rrN)r%r&r'r(rdrgr))r_s�r
�Arb�s���
�
$�
$rri)r	r
�assertEqualr)rr[rir_s   @r
�test_reentrancy�TestEdgeCases.test_reentrancy�sJ���	�	�	$�	$�	���q�s�����s��������)�3�/rc��Sn[R"U5 A[R"[R"55 g)Nc��grrrs r
r[�+TestEdgeCases.test_same_object.<locals>.foo�r]r)r	r
r)rr[s  r
�test_same_object�TestEdgeCases.test_same_object�s+��	�	���s������s�~�~�'�(rc��SnS[R"5l[R"5n[R"S5 U"5 [R"U5 [R
"S5 U"5 g)Nc��grrrrr
r��9TestEdgeCases.test_profile_after_trace_opcodes.<locals>.f�r]rTc��grrrs r
�<lambda>�@TestEdgeCases.test_profile_after_trace_opcodes.<locals>.<lambda>�s��4rc��grrrs r
rvrw�s��Tr)r	r@�f_trace_opcodes�gettrace�settracer
)rr��
prev_traces   r
� test_profile_after_trace_opcodes�.TestEdgeCases.test_profile_after_trace_opcodes�sR��	�+/��
�
��'��\�\�^�
����'�(�	�����Z� ����)�*�	�rc��^�"SS5n/m[R"U4Sj5 U"5R5 [R"S5 URT/SQ5 g)Nc�$�\rSrSr\"\5rSrg)�4TestEdgeCases.test_method_with_c_function.<locals>.Ai�rN)r%r&r'r(�classmethod�reprr�r)rrr
rir��s���D�!�Arric�&>�TRU5$r)rD)r9r:rr/s   �r
rv�;TestEdgeCases.test_method_with_c_function.<locals>.<lambda>�s���&�-�-��2Fr)rhrirh)r	r
r�rj)rrir/s  @r
�test_method_with_c_function�)TestEdgeCases.test_method_with_c_function�sG���
	"�	"������F�G�	��������t������!A�BrrN)
r%r&r'r(rrkrpr}r�r)rrr
rUrU�s���0�$)�
�CrrU�__main__r)rMrqr	�unittest�TestCaserr+rPrlryrrErJ�
protect_identrorSrUr%�mainrrr
�<module>r�s���	�
�
��,�X�&�&�,�"K�K�@ 
�{� 
�F
P�8�$�$�
P�C!�,�C!�Lb7�|�b7�J-���g��
� �",�
8C�H�%�%�8C�v�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit