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

Method test_create

numpy/_core/tests/test_multiarray.py:1957–1963  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1955 return np.zeros(shape, dtype=dtype)['x']
1956
1957 def test_create(self):
1958 zs = self._zeros(10, bytes)
1959 assert_equal(zs.itemsize, 0)
1960 zs = self._zeros(10, np.void)
1961 assert_equal(zs.itemsize, 0)
1962 zs = self._zeros(10, str)
1963 assert_equal(zs.itemsize, 0)
1964
1965 def _test_sort_partition(self, name, kinds, **kwargs):
1966 # Previously, these would all hang

Callers

nothing calls this directly

Calls 2

_zerosMethod · 0.95
assert_equalFunction · 0.90

Tested by

no test coverage detected