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

Method test_builtin_abs

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

Source from the content-addressed store, hash-verified

772
773 @pytest.mark.parametrize("dtype", floating_types + complex_floating_types)
774 def test_builtin_abs(self, dtype):
775 if (
776 sys.platform == "cygwin" and dtype == np.clongdouble and
777 (
778 _pep440.parse(platform.release().split("-")[0])
779 < _pep440.Version("3.3.0")
780 )
781 ):
782 pytest.xfail(
783 reason="absl is computed in double precision on cygwin < 3.3"
784 )
785 self._test_abs_func(abs, dtype)
786
787 @pytest.mark.parametrize("dtype", floating_types + complex_floating_types)
788 def test_numpy_abs(self, dtype):

Callers

nothing calls this directly

Calls 3

_test_abs_funcMethod · 0.95
parseMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected