(self)
| 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 |