
    PhI                     J    d Z ddlmZ ddlmc mZ ddlmZm	Z	  G d d      Z
y)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 Zd Zd Zd Zy)
TestMachArc                 b    	 t         j                  t        fd       y # t        $ r Y y w xY w)Nc                     t        |       S )N)r   )vhiprecs    gC:\Users\daisl\Desktop\realtime-object-detection\venv\Lib\site-packages\numpy/core/tests/test_machar.py<lambda>z1TestMachAr._run_machar_highprec.<locals>.<lambda>   s    U1f-    )ntypesfloat96r   AttributeError)selfr   s    @r   _run_machar_highpreczTestMachAr._run_machar_highprec   s/    	K^^F-. 	KJ	Ks   " 	..c                     t        d      5  	 | j                          	 d d d        y # t        $ r}d|z  }t        |      d }~ww xY w# 1 sw Y   y xY w)Nraise)allz1Caught %s exception, should not have been raised.)r   r   FloatingPointErrorAssertionError)r   emsgs      r   test_underlowzTestMachAr.test_underlow   sU     '"*))+ #" & *IAM$S))* #"s%   A
)	AAAA

AN)__name__
__module____qualname__r   r    r   r   r   r      s    K*r   r   )__doc__numpy.core._macharr   numpy.core.numerictypescorenumerictypesr   numpyr   r   r   r   r   r   <module>r&      s"   
 & ( ( !* *r   