관리-도구
편집 파일: test_machar.cpython-311.pyc
� �܋f+ � �R � d Z ddlmZ ddlmc mZ ddlmZm Z G d� d� � Z dS )z� Test machar. Given recent changes to hardcode type data, we might want to get rid of both MachAr and this test at some point. � )�MachArN)�errstate�arrayc � � e Zd Zd� Zd� ZdS )� TestMachArc �h �� t j �t �fd�� � d S # t $ r Y d S w xY w)Nc �$ �� t | �� � S )N)r )�v�hiprecs ��o/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/core/tests/test_machar.py�<lambda>z1TestMachAr._run_machar_highprec.<locals>.<lambda> s �� �U�1�f�-�-� � )�ntypes�float96r �AttributeError)�selfr s @r �_run_machar_highpreczTestMachAr._run_machar_highprec sV �� � K��^�F��-�-�-�-�.�.�.�.�.��� K� K� K�J�J�J� K���s �# � 1�1c �� � t d�� � 5 | � � � n&# t $ r}d|z }t |� � �d }~ww xY w d d d � � d S # 1 swxY w Y d S )N�raise)�allz1Caught %s exception, should not have been raised.)r r �FloatingPointError�AssertionError)r �e�msgs r � test_underlowzTestMachAr.test_underlow s� � � �'� "� "� "� *� *� *��)�)�+�+�+�+��%� *� *� *�I�A�M��$�S�)�)�)����� *���� ,� *� *� *� *� *� *� *� *� *� *� *� *���� *� *� *� *� *� *s0 �A�(�A� A�A�A�A�A �#A N)�__name__� __module__�__qualname__r r � r r r r s5 � � � � � �K� K� K�*� *� *� *� *r r )�__doc__�numpy.core._macharr �numpy.core.numerictypes�core�numerictypesr �numpyr r r r r r �<module>r&