MCPcopy Index your code
hub / github.com/numpy/numpy / test_numpy_abs

Method test_numpy_abs

numpy/_core/tests/test_scalarmath.py:787–798  ·  view source on GitHub ↗
(self, dtype)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

_test_abs_funcMethod · 0.95
splitMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected