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

Method test_valid

numpy/_core/tests/test_conversion_utils.py:171–176  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

169 exact_match = True
170
171 def test_valid(self):
172 self._check("no", "NPY_NO_CASTING")
173 self._check("equiv", "NPY_EQUIV_CASTING")
174 self._check("safe", "NPY_SAFE_CASTING")
175 self._check("unsafe", "NPY_UNSAFE_CASTING")
176 self._check("same_kind", "NPY_SAME_KIND_CASTING")
177
178 def test_invalid(self):
179 # Currently, 'same_value' is supported only in ndarray.astype

Callers

nothing calls this directly

Calls 1

_checkMethod · 0.45

Tested by

no test coverage detected