python (3.11.7)
    e                         d dl Z d dlZd dlZd dlmZ  G d de j                  Z G d de j                  Ze	dk    r e j
                     dS dS )    N)systemc                   D    e Zd Z	 d Zd Zd ZdZd Zd Zd Z	d Z
d	 Zd
S )ExceptionClassTestsc                 `    |                      t          t          t                               d S N)
assertTrue
issubclass	Exceptionobjectselfs    K/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_baseexception.pytest_builtins_new_stylez+ExceptionClassTests.test_builtins_new_style   s$    
9f5566666    c                 x    dD ]6}|                      t          ||          |j        j        d|d           7d S )N)args__str____repr__z	 missing z
 attribute)r   hasattr	__class____name__)r
   insattrs      r   verify_instance_interfacez-ExceptionClassTests.verify_instance_interface   s[    3 	8 	8DOOGC..///7
8 
8 
8 
8	8 	8r   c                 t   t                      }t          j                                        D ]B}	 t	          |t
                    r|                    |j                   3# t          $ r Y ?w xY wt          t          j                            t          j        
                    t                    d         d          d          }	 |                                                                }	 t#          t          |          }n(# t$          $ r |                     d|z             Y nw xY w|                     ||d|z             |                    |           g }d}|D ]}|                                }|                    d          }	||	dz   d          }
d	|
v rW|
                    d	          }|
|d
z   d         }|
d |d
z
           }
t1                      |k    r|                    |
           d|
v r"|
                    d          }
|
d |
d
z
           }
	 t#          t          |
          }n(# t$          $ r |                     d
|
z             Y nw xY w||	k     r|                    ||f           n>||	k    r8|d         d         |	k    r&|                                 |d         d         |	k    &|                     t	          ||d         d
                   |j        d|d         d
         j                   	 |                      |                       n# t          $ r Y nw xY w|                     |
|           |                    |
           |}|	} 	 |                                 n# |                                 w xY w|                     t?          |          dd|z             d S )Nr   zexception_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 z%s not accounted for) setbuiltins__dict__valuesr	   
BaseExceptionaddr   	TypeErroropenospathjoinsplit__file__readlinerstripgetattrAttributeErrorfailassertIndiscardrindexindexplatform_systemappendpopr   r   closeassertEquallen)r
   exc_setobject_inheritance_treesuperclass_namelast_excsuperclasses
last_depthexc_linedepthexc_nameparen_index
platform_nameleft_bracketexcs                  r   test_inheritancez$ExceptionClassTests.test_inheritance   s#   %%(//11 	 	G
g}55 2KK 0111 
 
 
  RW]]844Q79RSS "