a :jg-@sDdZddlmZddlmmZddlmZm Z GdddZ dS)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)errstatearrayc@seZdZddZddZdS) TestMachArcs2ztjtfddWnty,Yn0dS)Ncs t|S)N)r)vZhiprecG/usr/local/lib/python3.9/site-packages/numpy/_core/tests/test_machar.pyz1TestMachAr._run_machar_highprec..)ntypesZfloat96rAttributeError)selfrrr _run_machar_highprec s  zTestMachAr._run_machar_highprecc CsptddRz |Wn4tyL}zd|}t|WYd}~n d}~00Wdn1sb0YdS)Nraise)allz1Caught %s exception, should not have been raised.)rrFloatingPointErrorAssertionError)remsgrrr test_underlows   zTestMachAr.test_underlowN)__name__ __module__ __qualname__rrrrrr r s r) __doc__Znumpy._core._macharrZnumpy._core.numerictypesZ_coreZ numerictypesr numpyrrrrrrr s