Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/test/support/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/test/support/__pycache__/testcase.cpython-312.opt-1.pyc

�

(Μg@	��R�ddlmZmZGd�d�ZGd�d�ZGd�de�Zy)	�)�copysign�isnanc��eZdZd�Zy)�ExceptionIsLikeMixinc�^�|�|�y|�|jd|���|�|jd|�d��t|t�sS|j|j|j�|j|j
d|j
d�y|j|j|j�|jt|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`.
        Nzunexpected exception: zexpected an exception like z
, got Noner)�fail�
isinstance�ExceptionGroup�assertEqual�	__class__�args�message�len�
exceptions�zip�assertExceptionIsLike)�self�exc�template�e�ts     �2/usr/local/lib/python3.12/test/support/testcase.pyrz*ExceptionIsLikeMixin.assertExceptionIsLikes����;�8�+�����I�I�.�s�e�4�5��;��I�I�3�H�<�z�J�K��#�~�.����S�]�]�H�,>�,>�?����S�X�X�a�[�(�-�-��*:�;����S�[�[�(�*:�*:�;����S����0�#�h�6I�6I�2J�K��C�N�N�H�,?�,?�@���1��*�*�1�a�0�A�N)�__name__�
__module__�__qualname__r�rrrrs��1rrc��eZdZd�Zy)�FloatsAreIdenticalMixinc��d}t|�st|�rt|�r6t|�r+y||k(r%|dk7rytd|�td|�k(ry|dz
}|j|j||��y)a#Fail unless floats x and y are identical, in the sense that:
        (1) both x and y are nans, or
        (2) both x and y are infinities, with the same sign, or
        (3) both x and y are zeros, with the same sign, or
        (4) x and y are both finite and nonzero, and x == y

        z&floats {!r} and {!r} are not identicalNgg�?z: zeros have different signs)rrr�format)r�x�y�msgs    r�assertFloatsAreIdenticalz0FloatsAreIdenticalMixin.assertFloatsAreIdentical sr��7����8�u�Q�x��Q�x�E�!�H��
�!�V��C�x���#�q�!�X�c�1�%5�5���5�5���	�	�#�*�*�Q��"�#rN)rrrr%rrrrrs��$rrc��eZdZd�Zy)�ComplexesAreIdenticalMixinc��|j|j|j�|j|j|j�y)z�Fail unless complex numbers x and y have equal values and signs.

        In particular, if x and y both have real (or imaginary) part
        zero, but the zeros have different signs, this test will fail.

        N)r%�real�imag)rr"r#s   r�assertComplexesAreIdenticalz6ComplexesAreIdenticalMixin.assertComplexesAreIdentical9s4��	
�%�%�a�f�f�a�f�f�5��%�%�a�f�f�a�f�f�5rN)rrrr+rrrr'r'8s��6rr'N)�mathrrrrr'rrr�<module>r-s)�� �1�1�6$�$�2	6�!8�	6r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists