OwlCyberSecurity - MANAGER
Edit File: test_machar.cpython-38.pyc
U �i]u � @ sZ d Z ddlmZmZmZ ddlmZ ddlm m Z ddlmZm Z G dd� de�ZdS )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. � )�division�absolute_import�print_function)�MachArN)�errstate�arrayc @ s e Zd Zdd� Zdd� ZdS )� TestMachArc s4 zt j� t� fdd�� W n tk r. Y nX d S )Nc s t | g� �S )N)r )�v�Zhiprec� �>/usr/lib/python3/dist-packages/numpy/core/tests/test_machar.py�<lambda> � z1TestMachAr._run_machar_highprec.<locals>.<lambda>)�ntypesZfloat96r �AttributeError)�selfr r r �_run_machar_highprec s zTestMachAr._run_machar_highprecc C sZ t dd��F z| �� W n2 tk rJ } zd| }t|��W 5 d }~X Y nX W 5 Q R X d S )N�raise)�allz1Caught %s exception, should not have been raised.)r r �FloatingPointError�AssertionError)r �e�msgr r r � test_underlow s zTestMachAr.test_underlowN)�__name__� __module__�__qualname__r r r r r r r s r )�__doc__Z __future__r r r Znumpy.core.macharr Znumpy.core.numerictypesZcoreZnumerictypesr Znumpyr r �objectr r r r r �<module> s