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

Method test_underlow

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

Source from the content-addressed store, hash-verified

20 "Skipping test: no ntypes.float96 available on this platform."
21
22 def test_underlow(self):
23 # Regression test for #759:
24 # instantiating MachAr for dtype = np.float96 raises spurious warning.
25 with errstate(all='raise'):
26 try:
27 self._run_machar_highprec()
28 except FloatingPointError as e:
29 msg = "Caught %s exception, should not have been raised." % e
30 raise AssertionError(msg)

Callers

nothing calls this directly

Calls 2

_run_machar_highprecMethod · 0.95
errstateClass · 0.90

Tested by

no test coverage detected