Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/test_exception_group.cpython-311.pyc |
�
�Ke� � �@ � d dl Zd dlZd dlZd dlZ G d� dej � � Z G d� dej � � Z G d� dej � � Z G d� d ej � � Z d
� Z
G d� dej � � Z G d
� dej � � Z G d� de� � Z
G d� de� � Z G d� dej � � Zd"d�Z G d� dej � � Zd� Z G d� de� � Z G d� de� � Z G d� de� � Z G d� d e� � Zed!k r ej � � dS dS )#� Nc � � e Zd Zd� Zd� Zd� ZdS )�TestExceptionGroupTypeHierarchyc � � | � t t t � � � � | � t t t � � � � | � t t t
� � � � d S �N)�
assertTrue�
issubclass�ExceptionGroup� Exception�BaseExceptionGroup�
BaseException��selfs �C/usr/local/apps/python3/lib/python3.11/test/test_exception_group.py�test_exception_group_typesz:TestExceptionGroupTypeHierarchy.test_exception_group_types s^ � ����
�>�9�=�=�>�>�>����
�>�3E�F�F�G�G�G����
�#5�}�E�E�F�F�F�F�F� c � � | � t d� � 5 t t d d d � � d S # 1 swxY w Y d S )Nr
)�assertRaisesRegex� TypeErrorr
�OSErrorr
s r �"test_exception_is_not_generic_typezBTestExceptionGroupTypeHierarchy.test_exception_is_not_generic_type
s� � �
�
#�
#�I�{�
;�
;� � ��g��� � � � � � � � � � � � ���� � � � � � s �<�A �A c � � t }| � t | t j � � | � t
| t j � � d S r )r �assertIsInstancer �types�GenericAliasr )r �Es r �$test_exception_group_is_generic_typezDTestExceptionGroupTypeHierarchy.test_exception_group_is_generic_type sJ � ������n�Q�/��1C�D�D�D����0��3�U�5G�H�H�H�H�Hr N)�__name__�
__module__�__qualname__r r r � r r r r sI � � � � � �G� G� G�
� � �I� I� I� I� Ir r c �&