File: //opt/alt/python312/lib64/python3.12/test/__pycache__/test_exception_group.cpython-312.opt-1.pyc
�
~h�e� � �> � d dl Zd dlZd dlZd dlmZ G d� dej � Z G d� dej � Z G d� dej � Z G d � d
ej � Z
d� Z G d� d
ej � 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 ej2 � yy)$� N)�C_RECURSION_LIMITc � � e Zd Zd� Zd� Zd� Zy)�TestExceptionGroupTypeHierarchyc �� � | j t t t � � | j t t t � � | j t t t
� � y �N)�
assertTrue�
issubclass�ExceptionGroup� Exception�BaseExceptionGroup�
BaseException��selfs �@/opt/alt/python312/lib64/python3.12/test/test_exception_group.py�test_exception_group_typesz:TestExceptionGroupTypeHierarchy.test_exception_group_types s= � ����
�>�9�=�>����
�>�3E�F�G����
�#5�}�E�F� c �t � | j t d� 5 t t d d d � y # 1 sw Y y xY w)Nr )�assertRaisesRegex� TypeErrorr �OSErrorr s r �"test_exception_is_not_generic_typezBTestExceptionGroupTypeHierarchy.test_exception_is_not_generic_type s/ � �
�
#�
#�I�{�
;� ��g�� � � �s �.�7c � � t }| j t | t j � | j t
| t j � y r )r �assertIsInstancer
�types�GenericAliasr )r �Es r �$test_exception_group_is_generic_typezDTestExceptionGroupTypeHierarchy.test_exception_group_is_generic_type s>