Sindbad~EG File Manager
�
&Μg � � � d dl Z d dlZd dlZd dlmZ G d� de j � Z G d� de j � Ze dk( r e j � yy)� N)�systemc �D � e Zd ZdZd� Zd� Zd� ZdZd� Zd� Z d� Z
d � Zd
� Zy)�ExceptionClassTestsz]Tests for anything relating to exception objects themselves (e.g.,
inheritance hierarchy)c �J � | j t t t � � y �N)�
assertTrue�
issubclass� Exception�object��selfs �4/usr/local/lib/python3.12/test/test_baseexception.py�test_builtins_new_stylez+ExceptionClassTests.test_builtins_new_style s � ����
�9�f�5�6� c �~ � dD ]8 }| j t ||� |j j �d|�d�� �: y )N)�args�__str__�__repr__z missing z
attribute)r �hasattr� __class__�__name__)r
�ins�attrs r �verify_instance_interfacez-ExceptionClassTests.verify_instance_interface s5 � �3�D��O�O�G�C��.����/�/��7�
8� 4r c �2 � t � }t j j � D ]. } t |t
� r|j
|j � �0 t t j j t j j t � d d� d�� } |j � j! � } t# t |� }| j) ||d|z � |j+ |� g }d}|D �]b }|j! � }|j- d� } || dz d }
d |
v r@|
j/ d � }|
|d
z d }|
d |d
z
}
t1 � |k7 r|j+ |
� �qd|
v r|
j/ d� }
|
d |
d
z
}
t# t |
� }|| k r|j3 |f� n,|| kD r'|d d | k\ r|j5 � |d d | k\ r�| j7 t |d d
� |j �d|d d
j ��� | j9 |� � | j) |
|� |j+ |
� |}| }��e |j; � | j= t? |� dd|z � y # t $ r Y ���w xY w# t$ $ r | j'