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

Method test_keep_default_zero

numpy/lib/tests/test__iotools.py:243–247  ·  view source on GitHub ↗

Check that we don't lose a default of 0

(self)

Source from the content-addressed store, hash-verified

241 assert_equal(converter.type, np.dtype(float))
242
243 def test_keep_default_zero(self):
244 "Check that we don't lose a default of 0"
245 converter = StringConverter(int, default=0,
246 missing_values="N/A")
247 assert_equal(converter.default, 0)
248
249 def test_keep_missing_values(self):
250 "Check that we're not losing missing values"

Callers

nothing calls this directly

Calls 2

StringConverterClass · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected