MCPcopy
hub / github.com/numpy/numpy / test_fillvalue_bytes_or_str

Method test_fillvalue_bytes_or_str

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

Source from the content-addressed store, hash-verified

2626 assert_(y.fill_value == 999999)
2627
2628 def test_fillvalue_bytes_or_str(self):
2629 # Test whether fill values work as expected for structured dtypes
2630 # containing bytes or str. See issue #7259.
2631 a = empty(shape=(3, ), dtype="(2,)3S,(2,)3U")
2632 assert_equal(a["f0"].fill_value, default_fill_value(b"spam"))
2633 assert_equal(a["f1"].fill_value, default_fill_value("eggs"))
2634
2635
2636class TestUfuncs:

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
default_fill_valueFunction · 0.90
emptyFunction · 0.85

Tested by

no test coverage detected