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

Method test_resize

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

Source from the content-addressed store, hash-verified

1774 self._test_sort_partition('argpartition', kinds=['introselect'], kth=2)
1775
1776 def test_resize(self):
1777 # previously an error
1778 for dt in [bytes, np.void, str]:
1779 zs = self._zeros(10, dt)
1780 zs.resize(25)
1781 zs.resize((10, 10))
1782
1783 def test_view(self):
1784 for dt in [bytes, np.void, str]:

Callers

nothing calls this directly

Calls 2

_zerosMethod · 0.95
resizeMethod · 0.45

Tested by

no test coverage detected