zmc
2023-10-12 ed135d79df12a2466b52dae1a82326941211dcc9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
U
O±dIã@sDdZddlmZddlmmZddlmZm    Z    Gdd„dƒZ
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)ÚerrstateÚarrayc@seZdZdd„Zdd„ZdS)Ú
TestMachArcs4ztj‰t‡fdd„ƒWntk
r.YnXdS)Ncs
t|ˆƒS)N)r)Úv©Zhiprec©úSd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\numpy/core/tests/test_machar.pyÚ<lambda>óz1TestMachAr._run_machar_highprec.<locals>.<lambda>)ÚntypesZfloat96rÚAttributeError)Úselfrrr    Ú_run_machar_highprec s
zTestMachAr._run_machar_highprecc CsZtddFz | ¡Wn2tk
rJ}zd|}t|ƒ‚W5d}~XYnXW5QRXdS)NÚraise)Úallz1Caught %s exception, should not have been raised.)rrÚFloatingPointErrorÚAssertionError)rÚeÚmsgrrr    Ú test_underlows   zTestMachAr.test_underlowN)Ú__name__Ú
__module__Ú __qualname__rrrrrr    r s
r) Ú__doc__Znumpy.core._macharrZnumpy.core.numerictypesÚcoreZ numerictypesr Únumpyrrrrrrr    Ú<module>s