MCPcopy Create free account
hub / github.com/numpy/numpy / _run_machar_highprec

Method _run_machar_highprec

numpy/core/tests/test_machar.py:12–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10
11class TestMachAr:
12 def _run_machar_highprec(self):
13 # Instantiate MachAr instance with high enough precision to cause
14 # underflow
15 try:
16 hiprec = ntypes.float96
17 MachAr(lambda v: array(v, hiprec))
18 except AttributeError:
19 # Fixme, this needs to raise a 'skip' exception.
20 "Skipping test: no ntypes.float96 available on this platform."
21
22 def test_underlow(self):
23 # Regression test for #759:

Callers 1

test_underlowMethod · 0.95

Calls 2

MachArClass · 0.90
arrayFunction · 0.90

Tested by

no test coverage detected