
    Rh                          G d  d      Z y)c                       e Zd Zd Zy)ExceptionIsLikeMixinc                 ^   ||y|| j                  d|        || j                  d|d       t        |t              sS| j                  |j                  |j                         | j                  |j
                  d   |j
                  d          y| j                  |j                  |j                         | j                  t        |j                        t        |j                               t        |j                  |j                        D ]  \  }}| j                  ||        y)a	  
        Passes when the provided `exc` matches the structure of `template`.
        Individual exceptions don't have to be the same objects or even pass
        an equality test: they only need to be the same type and contain equal
        `exc_obj.args`.
        Nzunexpected exception: zexpected an exception like z
, got None    )fail
isinstanceExceptionGroupassertEqual	__class__argsmessagelen
exceptionszipassertExceptionIsLike)selfexctemplateets        ,/usr/lib/python3.12/test/support/testcase.pyr   z*ExceptionIsLikeMixin.assertExceptionIsLike   s     ;8+II.se45;II3H<zJK#~.S]]H,>,>?SXXa[(--*:;S[[(*:*:;S0#h6I6I2JKCNNH,?,?@ 11**1a01    N)__name__
__module____qualname__r    r   r   r   r      s    1r   r   N)r   r   r   r   <module>r      s   1 1r   