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

Method test_create

numpy/core/tests/test_multiarray.py:1746–1752  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1744 return np.zeros(shape, dtype=dtype)['x']
1745
1746 def test_create(self):
1747 zs = self._zeros(10, bytes)
1748 assert_equal(zs.itemsize, 0)
1749 zs = self._zeros(10, np.void)
1750 assert_equal(zs.itemsize, 0)
1751 zs = self._zeros(10, str)
1752 assert_equal(zs.itemsize, 0)
1753
1754 def _test_sort_partition(self, name, kinds, **kwargs):
1755 # 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