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

Method test_numpy_abs

numpy/core/tests/test_scalarmath.py:788–799  ·  view source on GitHub ↗
(self, dtype)

Source from the content-addressed store, hash-verified

786
787 @pytest.mark.parametrize("dtype", floating_types + complex_floating_types)
788 def test_numpy_abs(self, dtype):
789 if (
790 sys.platform == "cygwin" and dtype == np.clongdouble and
791 (
792 _pep440.parse(platform.release().split("-")[0])
793 < _pep440.Version("3.3.0")
794 )
795 ):
796 pytest.xfail(
797 reason="absl is computed in double precision on cygwin < 3.3"
798 )
799 self._test_abs_func(np.abs, dtype)
800
801class TestBitShifts:
802

Callers

nothing calls this directly

Calls 3

_test_abs_funcMethod · 0.95
parseMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected