관리-도구
편집 파일: test_errstate.cpython-311.pyc
� �܋f� � � � d dl Z d dlZd dlZd dlmZmZmZ ej d� � Z e �dne � d� � Z G d� d� � ZdS )� N)�assert_� assert_raises�IS_WASM� HOST_GNU_TYPEF�gnueabic �6 � e Zd Zej � ed�� � ej � ed�� � d� � � � � Zej � ed�� � ej � ed�� � d� � � � � Z d� Z d� Zd S ) �TestErrstatezfp errors don't work in wasm)�reasonz+platform/cpu issue with FPU (gh-413,-15562)c � � t j dd�� � 5 t j d� � }t j d�� � 5 t j |� � d d d � � n# 1 swxY w Y t t � � 5 t j |� � d d d � � n# 1 swxY w Y d d d � � d S # 1 swxY w Y d S )N�raise�ignore��all�under� )�invalid)�np�errstate�arange�sqrtr �FloatingPointError��self�as �q/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/core/tests/test_errstate.py�test_invalidzTestErrstate.test_invalid st � � �[�W�H� 5� 5� 5� � ���1��� �A���X�.�.�.� � ���� � � � � � � � � � � � � � ���� � � � � �1�2�2� � ���� � � � � � � � � � � � � � ���� � � � � � � � � � � � � � � � ���� � � � � � sY �+B;�A#�B;�#A' �'B;�*A' �+B;�B#�B;�#B' �'B;�*B' �+B;�;B?�B?z&platform/cpu issue with FPU (gh-15562)c � � t j dd�� � 5 t j d� � }t j d�� � 5 |dz d d d � � n# 1 swxY w Y t t � � 5 |dz d d d � � n# 1 swxY w Y t t � � 5 ||z d d d � � n# 1 swxY w Y d d d � � d S # 1 swxY w Y d S )Nr r r r )�divider )r r r r r r s r �test_dividezTestErrstate.test_divide s� � � �[�W�H� 5� 5� 5� � ���1��� �A���H�-�-�-� � ��Q��� � � � � � � � � � � ���� � � � � �1�2�2� � ��Q��� � � � � � � � � � � ���� � � � � �1�2�2� � ��Q��� � � � � � � � � � � ���� � � � � � � � � � � � � � � � ���� � � � � � s} �+C�A�C�A �C�A �C�3B�9C�B � C�B � C�$B6�*C�6B: �:C�=B: �>C�C�Cc � � d� }t j � � }t j |�� � 5 t t j � � |u d� � t j d �� � 5 t t j � � d u d� � d d d � � n# 1 swxY w Y d d d � � n# 1 swxY w Y t t j � � |u d� � d S )Nc �$ � t | � � d S )N)�print)�argss r �fooz&TestErrstate.test_errcall.<locals>.foo- s � ��$�K�K�K�K�K� )�callzcall is not foozcall is not Nonezcall is not olderrcall)r � geterrcallr r )r r$ � olderrcalls r �test_errcallzTestErrstate.test_errcall, sl � � � � � �]�_�_� � �[�c� "� "� "� E� E��B�M�O�O�s�*�,=�>�>�>���$�'�'�'� E� E��� ���4�/�1C�D�D�D� E� E� E� E� E� E� E� E� E� E� E���� E� E� E� E� E� E� E� E� E� E� E� E� E� E� E���� E� E� E� E� �� ���:�-�/G�H�H�H�H�Hs5 �9B,�%$B� B,�B �B,�B �B,�,B0�3B0c �V � t j d�� � d� � � } |� � d S )Nr )r c �: � t j d� � } | dz d S )Nr r )r r )r s r r$ z1TestErrstate.test_errstate_decorator.<locals>.foo8 s � ���1��� �A� ��F�F�F�Fr% )r r )r r$ s r �test_errstate_decoratorz$TestErrstate.test_errstate_decorator7 s: � � ��� "� "� "� � � #� "� � ������r% N)�__name__� __module__�__qualname__�pytest�mark�skipifr � arm_softfloatr r r) r, � r% r r r s� � � � � � ��[����(F��G�G��[��� �L� � N� N�� �N� N� H�G�� �[����(F��G�G��[��� �G� � I� I�� �I� I� H�G�� I� I� I�� � � � r% r ) r0 � sysconfig�numpyr � numpy.testingr r r �get_config_var�hosttype�endswithr3 r r4 r% r �<module>r; s� �� � � � � � � � � � � � � 9� 9� 9� 9� 9� 9� 9� 9� 9� 9� $�9�#�O�4�4��!�)���x�/@�/@��/K�/K� �/� /� /� /� /� /� /� /� /� /r%