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

Method test_valid

numpy/core/tests/test_conversion_utils.py:153–161  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

151 """ Tests of PyArray_ClipmodeConverter """
152 conv = mt.run_clipmode_converter
153 def test_valid(self):
154 self._check('clip', 'NPY_CLIP')
155 self._check('wrap', 'NPY_WRAP')
156 self._check('raise', 'NPY_RAISE')
157
158 # integer values allowed here
159 assert self.conv(np.CLIP) == 'NPY_CLIP'
160 assert self.conv(np.WRAP) == 'NPY_WRAP'
161 assert self.conv(np.RAISE) == 'NPY_RAISE'
162
163
164class TestCastingConverter(StringConverterTestCase):

Callers

nothing calls this directly

Calls 1

_checkMethod · 0.45

Tested by

no test coverage detected