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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_sys_setprofile.cpython-315.opt-2.pyc
R
>lqj�Bc�\�]PHs]PHs]PHs]PHsQQ\O2sQQ2sQQ\2sQQ\O2sQ	Q
\2s	QQ\2s
Q
sQs\\2s
QQksQsQQ\O2s\Q6Xc\O$2P!P!)�c�:`�\sQs]snQsQsQsQsQsUs	P!)�TestGetProfilec�4�[OP2P!�N��sys�
setprofile��selfs&�-C:\Python315\\Lib\test\test_sys_setprofile.py�setUp�TestGetProfile.setUp������t��c�4�[OP2P!rrr	s&r�tearDown�TestGetProfile.tearDownrrc�P�UO[O22P!r)�assertIsNoner�
getprofiler	s&r�
test_empty�TestGetProfile.test_emptys�����#�.�.�*�+rc��Qo[OU2UO[O2U2P!)c��P!r���argss*r�fn�&TestGetProfile.test_setget.<locals>.fn���r)rr�assertIsr)r
rs& r�test_setget�TestGetProfile.test_setgets*��	�	���r���
�
�c�n�n�&��+rr)
�__name__�
__module__�__qualname__�__firstlineno__rrrr!�__static_attributes__�__classdictcell__��
__classdict__s@rrrs������,�,�,rrc�>`�\sQs]snQsQsQQksQsQsUs	P!)�HookWatcherc�$�,Um,UmP!r)�frames�eventsr	s&r�__init__�HookWatcher.__init__s�������rc�Z�UQ6XfUQ6XfUQ6XcUOV!U2P!P!)�call�return�	exception��	add_event�r
�frame�event�args&&&&r�callback�HookWatcher.callbacks,���V�O��� ���#��N�N�5��-�$rc�D�Ue[O]2oUOOU2oUOO
VA[U2U12P![c4[SO2oSOO
S2Kfh9hr)	r�	_getframer.�index�
ValueError�len�appendr/�ident)r
r:r9r;�framenos&&&& rr7�HookWatcher.add_event#s~���=��M�M�!�$�E�	&��k�k�'�'��.�G�
	
�����G�E�%�L�#�>�?��	�	&��$�+�+�&�G��K�K���u�%�	&�s�A!�!	B�+1B�Bc���[UOO2[[2,oPUmUOTt,tFDp"]*U7fJUMJ	to!ttohr)rDr7�__func__r.r/)r
�
disallowed�items&  r�
get_events�HookWatcher.get_events0sM���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<r7rKr'r(r)s@rr,r,s!�����.�@�K�Krr,c�b`�\sQs]8snQsQsQsQsQsQs	Q\Q\Q	\Q
\	Q\	Q\	-s
Q
sUsP!)�ProfileSimulatorc�L�Vm,Um[OU2P!r)�testcase�stackr,r0)r
rPs&&rr0�ProfileSimulator.__init__9s�� �
���
����T�"rc�:�UOU*V2P!r)�dispatchr8s&&&&rr<�ProfileSimulator.callback>s���
�
�e��T�)rc�b�UOQU2UOOU2P!)r3)r7rQrC�r
r9s&&r�
trace_call�ProfileSimulator.trace_callBs"�����v�u�%��
�
���%� rc�`�UOQU2UOO2P!)r4)r7rQ�poprWs&&r�trace_return�ProfileSimulator.trace_returnFs�����x��'��
�
���rc�>�UOOQ2P!)z2the profiler should never receive exception events)rP�failrWs&&r�trace_exception� ProfileSimulator.trace_exceptionJs���
�
���@�	Brc��P!rrrWs&&r�
trace_pass�ProfileSimulator.trace_passNs��rr3r5r4�c_call�c_return�c_exception)rQrP)
r#r$r%r&r0r<rXr\r`rcrTr'r(r)s@rrNrN8sK����#�
*�!��B�
�	�
��_��,��*��J��z�

�HrrNc�,`�\sQs][snQQksQsUsP!)�TestCaseBasec��[VO22oU%cLVB6wcDUOQ[OU28Q[OU2802P!P!STTTTt,tFD
vqVqxVVU1MJ	tooooU6wcDUOQ[OU28Q[OU2802P!P!ttooooh)zExpected events:
z
Received events:
)�capture_events�new_watcherr_�pprint�pformat)	r
�callable�expected�
check_argsr/rEr:rDr;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�4C
r)F)r#r$r%r&rrr'r(r)s@rriri[s����	P�	Prric�|`�\sQs]hsnQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsQsQsUsP!)�ProfileHookTestCasec��[2!r)r,r	s&rrl�ProfileHookTestCase.new_watcheris
���}�rc�X�Qo[U2oUOU]QU1]QU1,2P!)c��P!rr��ps&r�f�*ProfileHookTestCase.test_simple.<locals>.fmrrr3r4�rDrr�r
r|�f_idents&  r�test_simple�ProfileHookTestCase.test_simplel�8��	���(�����!�q�&�'�2� �(�G�4� �	!rc�X�Qo[U2oUOU]QU1]QU1,2P!)c��]]*P!��rrzs&rr|�-ProfileHookTestCase.test_exception.<locals>.fu���
�a�C�Crr3r4r~rs&  r�test_exception�"ProfileHookTestCase.test_exceptiont�8��	���(�����!�q�&�'�2� �(�G�4� �	!rc�X�Qo[U2oUOU]QU1]QU1,2P!)c�>�]]*P![cP!h9hr���ZeroDivisionErrorrzs&rr|�4ProfileHookTestCase.test_caught_exception.<locals>.f}����1����$�*�d�*���	
�	��r3r4r~rs&  r�test_caught_exception�)ProfileHookTestCase.test_caught_exception|�:��	+���(�����!�q�&�'�2� �(�G�4� �	!rc�X�Qo[U2oUOU]QU1]QU1,2P!)c�>�]]*P![cP!h9hr�r�rzs&rr|�;ProfileHookTestCase.test_caught_nested_exception.<locals>.f�r�r�r3r4r~rs&  r�test_caught_nested_exception�0ProfileHookTestCase.test_caught_nested_exception�r�rc�X�Qo[U2oUOU]QU1]QU1,2P!)c��]]*P!r�rrzs&rr|�4ProfileHookTestCase.test_nested_exception.<locals>.f�r�rr3r4r~rs&  r�test_nested_exception�)ProfileHookTestCase.test_nested_exception�s:��	���(�����!�q�&�'�2� !�(�G�4�	 �	!rc�`�QnU1Qko[R2o[U2oUOU]QU1]QU1]QU1]QU1]QU1]QU1,2P!)c��]]*P!r�rrzs&rr|�>ProfileHookTestCase.test_exception_in_except_clause.<locals>.f�r�rc�v:�RU2P![c RS2P![cP!h9hh9hrr��r{r|s&�r�g�>ProfileHookTestCase.test_exception_in_except_clause.<locals>.g�s2���
/��!���$�
/��q�T��(�.�$�.��
/�s$��	8�8�$�	4�4�8�4�8r3r4r~�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
�`�QnU1Qko[R2o[U2oUOU]QU1]QU1]QU1]QU1]QU1,2P!)c��]]*P!r�rrzs&rr|�9ProfileHookTestCase.test_exception_propagation.<locals>.f�r�rc�h:�RU2UOQ2P!SOQ2h9h)�falling throughr6r�s&�rr��9ProfileHookTestCase.test_exception_propagation.<locals>.g�s%����1���[�[�!2�3��Q�[�[�!2�3�s��1r3r4r�r~r�s&   @r�test_exception_propagation�.ProfileHookTestCase.test_exception_propagation�sh���	�	4���(����(�����!�q�&�'�2� �&�'�2� �(�G�4� �"3�W�=� �(�G�4�	 �	!rc�X�Qo[U2oUOU]QU1]QU1,2P!)c�P�]]*P![c]]*P!h9hr�r�rzs&rr|�/ProfileHookTestCase.test_raise_twice.<locals>.f�s���1����$�)�a��c�c�)�s�	
�	%�
%�%r3r4r~rs&  r�test_raise_twice�$ProfileHookTestCase.test_raise_twice�s:��	*���(�����!�q�&�'�2� �(�G�4� �	!rc�X�Qo[U2oUOU]QU1]QU1,2P!)c�:�]]*P![cgh9hr�r�rzs&rr|�1ProfileHookTestCase.test_raise_reraise.<locals>.f�s���1����$�+�e�+�s�	
�	�r3r4r~rs&  r�test_raise_reraise�&ProfileHookTestCase.test_raise_reraise�s:��	,���(�����!�q�&�'�2� �(�G�4� �	!rc�X�Qo[U2oUOU]QU1]QU1,2P!)c��[2gr)�	Exceptionrzs&rr|�)ProfileHookTestCase.test_raise.<locals>.f�s
���+�rr3r4r~rs&  r�
test_raise�ProfileHookTestCase.test_raise�s8��	���(�����!�q�&�'�2� �(�G�4� �	!rc�(```	`
�QnU1QknU1Qkn	U	1Qkn
U
1Qko[R2o[R2o[R	2o[R
2o[U2oUOU]QU1]QU1]QU1]QU1]QU1]QU1]QU1]QU1]QU1]QU1,
2P!)c��]]*P!r�rrrrr|�5ProfileHookTestCase.test_distant_exception.<locals>.f�r�rc�:�R2P!rr�r|s�rr��5ProfileHookTestCase.test_distant_exception.<locals>.g�����
�Crc�:�R2P!rr�r�s�r�h�5ProfileHookTestCase.test_distant_exception.<locals>.h�r�rc�:�R2P!rr�r�s�r�i�5ProfileHookTestCase.test_distant_exception.<locals>.i�r�rc�:�R2P!rr�r{r�s&�r�j�5ProfileHookTestCase.test_distant_exception.<locals>.j�r�rr3r4r~�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
�`�QnU1Qko[R2o[U2oUOU]QU1]QU1]QU1]QU1]QU1]QU1]QU1]QU1,2P!)c3�@ �[]2FDoUw�	J
	P!3h����range�r�s rr|�-ProfileHookTestCase.test_generator.<locals>.f������1�X�������c�(:�R2FDoJ	P!rr�r{r�r|s& �rr��-ProfileHookTestCase.test_generator.<locals>.g������S���rr3r4r~r�s&   @r�test_generator�"ProfileHookTestCase.test_generator�s����	�	���(����(�����!�q�&�'�2� �&�'�2� �(�G�4� �&�'�2� �(�G�4� !�&�'�2� �(�G�4� �(�G�4� �	!rc�`�QnU1Qko[R2o[U2oUOU]QUP1]QUP1]QU]1]QUP1]QUP1]QUP1,P	Q5P!)c3�@ �[]2FDoUw�	J
	P!3hr�r�r�s rr|�8ProfileHookTestCase.test_unfinished_generator.<locals>.fr�r�c�*:�[R22P!r)�nextr�s&�rr��8ProfileHookTestCase.test_unfinished_generator.<locals>.gs������Irr3r4)rqr~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
�`�QnU1Qko[R2o[U2oUOU]QU1]QU1]QU1]QU1]QU1]QU1]QU1]QU1,2P!)c3�@ �[]2FDoUw�	J
	P!3hr�r�r�s rr|�2ProfileHookTestCase.test_stop_iteration.<locals>.fr�r�c�(:�R2FDoJ	P!rrr�s& �rr��2ProfileHookTestCase.test_stop_iteration.<locals>.gr�rr3r4r~r�s&   @r�test_stop_iteration�'ProfileHookTestCase.test_stop_iterations����	�	���(����(�����!�q�&�'�2� �&�'�2� �(�G�4� �&�'�2� �(�G�4� �&�'�2� �(�G�4� �(�G�4�
 �
	!rr)r#r$r%r&rlr�r�r�r�r�r�r�r�r�r�r�r�r�r�r'r(r)s@rruruhsU�����!�!�!�!�	!�!�&
!�!�!�!�!�8!�,2�"!�!rruc�^`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
QsUsP!)
�ProfileSimulatorTestCase�.c��[U2!r)rNr	s&rrl�$ProfileSimulatorTestCase.new_watcher/s
����%�%rc�X�Qo[U2oUOU]QU1]QU1,2P!)c��P!rrrzs&rr|�/ProfileSimulatorTestCase.test_simple.<locals>.f3rrr3r4r~rs&  rr��$ProfileSimulatorTestCase.test_simple2r�rc�X�Qo[U2oUOU]QU1]QU1,2P!)c��]]*P!r�rrzs&rr|�8ProfileSimulatorTestCase.test_basic_exception.<locals>.f;r�rr3r4r~rs&  r�test_basic_exception�-ProfileSimulatorTestCase.test_basic_exception:r�rc�X�Qo[U2oUOU]QU1]QU1,2P!)c�>�]]*P![cP!h9hr�r�rzs&rr|�9ProfileSimulatorTestCase.test_caught_exception.<locals>.fCr�r�r3r4r~rs&  rr��.ProfileSimulatorTestCase.test_caught_exceptionBr�rc�(```	`
�QnU1QknU1Qkn	U	1Qkn
U
1Qko[R2o[R2o[R	2o[R
2o[U2oUOU]QU1]QU1]QU1]QU1]QU1]QU1]QU1]QU1]QU1]QU1,
2P!)c��]]*P!r�rrrrr|�:ProfileSimulatorTestCase.test_distant_exception.<locals>.fLr�rc�:�R2P!rrr�s�rr��:ProfileSimulatorTestCase.test_distant_exception.<locals>.gNr�rc�:�R2P!rrr�s�rr��:ProfileSimulatorTestCase.test_distant_exception.<locals>.hPr�rc�:�R2P!rrr�s�rr��:ProfileSimulatorTestCase.test_distant_exception.<locals>.iRr�rc�:�R2P!rrr�s&�rr��:ProfileSimulatorTestCase.test_distant_exception.<locals>.jTr�rr3r4r~r�s&      @@@@rr��/ProfileSimulatorTestCase.test_distant_exceptionKr�rc�d`�-nU1Qko[U2oUOU]QU1]QU1,2P!)c�<:�[O-]*1-R@P!��*��dict�get�r{�kwargss&�rr|�7ProfileSimulatorTestCase.test_unbound_method.<locals>.fjs����H�H�R��&�v�&rr3r4r~�r
r|r�r#s&  @r�test_unbound_method�,ProfileSimulatorTestCase.test_unbound_methodhs>�����	'���(�����!�q�&�'�2� �(�G�4�6�	7rc�X�Qo[U2oUOU]QU1]QU1,2P!)c�0�[O2P!rrrzs&rr|�?ProfileSimulatorTestCase.test_unbound_method_no_args.<locals>.frs���H�H�Jrr3r4r~rs&  r�test_unbound_method_no_args�4ProfileSimulatorTestCase.test_unbound_method_no_argsqs8��	���(�����!�q�&�'�2� �(�G�4�6�	7rc�X�Qo[U2oUOU]QU1]QU1,2P!)c�<�[O[]*2P!r�r r!�printrzs&rr|�DProfileSimulatorTestCase.test_unbound_method_invalid_args.<locals>.fzs���H�H�U�B�rr3r4r~rs&  r� test_unbound_method_invalid_args�9ProfileSimulatorTestCase.test_unbound_method_invalid_argsys8��	 ���(�����!�q�&�'�2� �(�G�4�6�	7rc�d`�-nU1Qko[U2oUOU]QU1]QU1,2P!)c�8:�[OQ-R@P!)Nrrr"s&�rr|�GProfileSimulatorTestCase.test_unbound_method_no_keyword_args.<locals>.f�s����H�H��v�rr3r4r~r%s&  @r�#test_unbound_method_no_keyword_args�<ProfileSimulatorTestCase.test_unbound_method_no_keyword_args�s>�����	���(�����!�q�&�'�2� �(�G�4�6�	7rc�d`�-nU1Qko[U2oUOU]QU1]QU1,2P!)c�D:�[O[]*1-R@P!rr/r"s&�rr|�LProfileSimulatorTestCase.test_unbound_method_invalid_keyword_args.<locals>.f�s����H�H�U�B�)�&�)rr3r4r~r%s&  @r�(test_unbound_method_invalid_keyword_args�AProfileSimulatorTestCase.test_unbound_method_invalid_keyword_args�s>�����	*���(�����!�q�&�'�2� �(�G�4�6�	7rr)r#r$r%r&rlr�r	r�r�r&r+r2r7r<r'r(r)s@rr�r�.s<����&�!�!�!�!�:7�7�7�7�7�7rr�c��[UQ2%cUOoLUOoUOUO1!)�f_code)�hasattrr?�__code__�co_firstlineno�co_name)�function�codes& rrDrD�s8���x��"�"������ � ��������,�,rc�(�UU2P!P!9hrr)r|r{s&&r�protectrG�s��	
�1����D�s��c��Ue[2o[O2o[O2[O
UO2[V2[O
P2U%c[O2UO2]P!S%c[O2hh9hr)
r,�gc�	isenabled�disablerrr<rG�enablerK)ror{�old_gcs&& rrkrk�s����y��M���\�\�^�F��J�J�L�����q�z�z�"�������t����I�I�K��<�<�>�!�B������I�I�K��s�AB,�,C�5Cc�F�]PHoUO[U22P!�r)rmrk)rorms& r�show_eventsrP�s���
�M�M�.��*�+rc�@`�\sQsQsnQsQsQsQsQsQs	Us
P!)�
TestEdgeCases�c��UO[O[O22[OP2P!r)�
addCleanuprrrr	s&rr�TestEdgeCases.setUp�s'�����������(8�9����t�rc��`�QoQnU1QkQ2o[OU22[OU2UO[O2R2P!)c��P!rrrs*r�foo�*TestEdgeCases.test_reentrancy.<locals>.foo����rc��P!rrrs*r�bar�*TestEdgeCases.test_reentrancy.<locals>.bar�r[rc�6:`�\sQsQsnQsU1QksQsUsP!)�(TestEdgeCases.test_reentrancy.<locals>.A��c��P!rr)r
rs&*r�__call__�1TestEdgeCases.test_reentrancy.<locals>.A.__call__�s��rc�6:�[OR2P!rr)r
r]s&�r�__del__�0TestEdgeCases.test_reentrancy.<locals>.A.__del__�s������s�#rr)r#r$r%r&rcrfr'r()r*r]s@�r�Ar`�s����
�
$�
$rrh)rr�assertEqualr)r
rYrhr]s&  @r�test_reentrancy�TestEdgeCases.test_reentrancy�sJ���	�	�	$�	$�	���q�s�����s��������)�3�/rc��Qo[OU2=[O[O22P!)c��P!rrrs*rrY�+TestEdgeCases.test_same_object.<locals>.foo�r[r)rrr)r
rYs& r�test_same_object�TestEdgeCases.test_same_object�s+��	�	���s������s�~�~�'�(rc��QoP	[O2m[O2o[OQ2U2[OU2[O
Q2U2P!)c��P!rrrrrr|�9TestEdgeCases.test_profile_after_trace_opcodes.<locals>.f�r[rc��P!rrrs*r�<lambda>�@TestEdgeCases.test_profile_after_trace_opcodes.<locals>.<lambda>�s��4rc��P!rrrs*rrurv�s��Tr)rr?�f_trace_opcodes�gettrace�settracer)r
r|�
prev_traces&  r� test_profile_after_trace_opcodes�.TestEdgeCases.test_profile_after_trace_opcodes�sR��	�+/��
�
��'��\�\�^�
����'�(�	�����Z� ����)�*�	�rc�l`�QQ2o,n[OU1Qk2U2O2[OP2UOR,QN2QQ2o,n[OU1Qk2U2O]QQ5[OP2UOR,QN2,n[OU1Qk2Q
oU2OoUUQ	Q
-[OP2UOR,QN2P!)c�(�\sQsQs\\2sQsP!)�4TestEdgeCases.test_method_with_c_function.<locals>.A��r)r#r$r%r&�classmethod�reprr|r'rrrrhr��s���D�!�Arrhc�(:�ROU2!r�rC�r9r:rr/s&&&�rru�;TestEdgeCases.test_method_with_c_function.<locals>.<lambda>�����&�-�-��2Frc�(�\sQsQs\\2sQsP!)�4TestEdgeCases.test_method_with_c_function.<locals>.B��r)r#r$r%r&r��maxr|r'rrr�Br��s���C� �Arr�c�(:�ROU2!rr�r�s&&&�rrur��r�rc��]!rOr��xs&rrur�����qr)�keyc�(:�ROU2!rr�r�s&&&�rrur�r�rr�c��]!rOrr�s&rrur�
r�r)rerfre)rer3r4r3r4rfrer�)r3r4r3r4re)rrr|ri)r
rhr�r�mr/s&    @r�test_method_with_c_function�)TestEdgeCases.test_method_with_c_function�s����
	"�	"������F�G�	��������t������!A�B�	!�	!������F�G�	����a�[��!����t������
�	
������F�G���
�C�E�E��	�4�!�[�!����t��	
����
�	
rr)r#r$r%r&rrjror|r�r'r(r)s@rrRrR�s#�����0�$)�
�3
�3
rrR�__main__r)rIrmr�unittest�TestCaserr,rNrirur�rDrG�
protect_identrkrPrRr#�mainrrr�<module>r�s���	�
�
��,�X�&�&�,�"K�K�@ 
�{� 
�F
P�8�$�$�
P�C!�,�C!�Lb7�|�b7�J-���g��
� �",�
_
�H�%�%�_
�D�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit