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

Method test_keep_default_zero

numpy/lib/tests/test__iotools.py:238–242  ·  view source on GitHub ↗

Check that we don't lose a default of 0

(self)

Source from the content-addressed store, hash-verified

236 assert_equal(converter.type, np.dtype(float))
237
238 def test_keep_default_zero(self):
239 "Check that we don't lose a default of 0"
240 converter = StringConverter(int, default=0,
241 missing_values="N/A")
242 assert_equal(converter.default, 0)
243
244 def test_keep_missing_values(self):
245 "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