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

Method test_fillvalue_bytes_or_str

numpy/ma/tests/test_core.py:2432–2437  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2430 assert_(y.fill_value == 999999)
2431
2432 def test_fillvalue_bytes_or_str(self):
2433 # Test whether fill values work as expected for structured dtypes
2434 # containing bytes or str. See issue #7259.
2435 a = empty(shape=(3, ), dtype="(2)3S,(2)3U")
2436 assert_equal(a["f0"].fill_value, default_fill_value(b"spam"))
2437 assert_equal(a["f1"].fill_value, default_fill_value("eggs"))
2438
2439
2440class TestUfuncs:

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
default_fill_valueFunction · 0.90
emptyFunction · 0.50

Tested by

no test coverage detected