관리-도구
편집 파일: test_machar.cpython-37.pyc
B ��Fd� � @ st d dl mZmZmZ d dlmZ d dlm mZ d dl mZmZ d dl mZmZ G dd� de�Zedkrpe� dS ) � )�division�absolute_import�print_function)�MachArN)�errstate�array)�TestCase�run_module_suitec @ s e Zd Zdd� Zdd� ZdS )� TestMachArc s4 yt j� t� fdd�� W n tk r. Y nX d S )Nc s t | g� �S )N)r )�v)�hiprec� ��/builddir/build/BUILDROOT/alt-python37-numpy-1.13.3-8.el8.x86_64/opt/alt/python37/lib64/python3.7/site-packages/numpy/core/tests/test_machar.py�<lambda> � z1TestMachAr._run_machar_highprec.<locals>.<lambda>)�ntypes�float96r �AttributeError)�selfr )r r �_run_machar_highprec s zTestMachAr._run_machar_highprecc C sX t dd��D y| �� W n0 tk rH } z| �d| � W d d }~X Y nX W d Q R X d S )N�raise)�allz1Caught %s exception, should not have been raised.)r r �FloatingPointError�fail)r �er r r � test_underlow s zTestMachAr.test_underlowN)�__name__� __module__�__qualname__r r r r r r r s r �__main__)� __future__r r r Znumpy.core.macharr �numpy.core.numerictypes�core�numerictypesr �numpyr r Z numpy.testingr r r r r r r r �<module> s