o
    0c+                     @   sD   d Z ddlmZ ddlm  mZ ddlmZm	Z	 G dd dZ
dS )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                   @   s   e Zd Zdd Zdd ZdS )
TestMachArc                    s2   zt j t fdd W d S  ty   Y d S w )Nc                    s
   t |  S )N)r   )vhiprec R/var/www/html/gps/gps/lib/python3.10/site-packages/numpy/core/tests/test_machar.py<lambda>   s   
 z1TestMachAr._run_machar_highprec.<locals>.<lambda>)ntypesfloat96r   AttributeError)selfr	   r   r
   _run_machar_highprec   s   zTestMachAr._run_machar_highprecc                 C   sf   t dd$ z|   W n ty  } zd| }t|d }~ww W d    d S 1 s,w   Y  d S )Nraise)allz1Caught %s exception, should not have been raised.)r   r   FloatingPointErrorAssertionError)r   emsgr	   r	   r
   test_underlow   s   "zTestMachAr.test_underlowN)__name__
__module____qualname__r   r   r	   r	   r	   r
   r      s    
r   )__doc__numpy.core._macharr   numpy.core.numerictypescorenumerictypesr   numpyr   r   r   r	   r	   r	   r
   <module>   s
    