o 6a*@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) TestMachArcs2ztjtfddWdStyYdSw)Ncs t|S)N)r)vhiprec>/usr/lib/python3/dist-packages/numpy/core/tests/test_machar.pys z1TestMachAr._run_machar_highprec..)ntypesfloat96rAttributeError)selfr rr _run_machar_highprec s  zTestMachAr._run_machar_highprecc Csftdd$z|Wnty }zd|}t|d}~wwWddS1s,wYdS)Nraise)allz1Caught %s exception, should not have been raised.)rrFloatingPointErrorAssertionError)remsgr r r test_underlows  "zTestMachAr.test_underlowN)__name__ __module__ __qualname__rrr r r r r s r) __doc__numpy.core.macharrnumpy.core.numerictypescore numerictypesr numpyrrrr r r r s