MCPcopy Index your code
hub / github.com/numpy/numpy / test_resize

Method test_resize

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

Source from the content-addressed store, hash-verified

1985 self._test_sort_partition('argpartition', kinds=['introselect'], kth=2)
1986
1987 def test_resize(self):
1988 # previously an error
1989 for dt in [bytes, np.void, str]:
1990 zs = self._zeros(10, dt)
1991 zs.resize(25)
1992 zs.resize((10, 10))
1993
1994 def test_view(self):
1995 for dt in [bytes, np.void, str]:

Callers

nothing calls this directly

Calls 2

_zerosMethod · 0.95
resizeMethod · 0.80

Tested by

no test coverage detected