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

Method test_freeform_shape

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

Source from the content-addressed store, hash-verified

5868
5869 @_no_tracing
5870 def test_freeform_shape(self):
5871 x = np.eye(3)
5872 if IS_PYPY:
5873 x.resize(3, 2, 1, refcheck=False)
5874 else:
5875 x.resize(3, 2, 1)
5876 assert_(x.shape == (3, 2, 1))
5877
5878 @_no_tracing
5879 def test_zeros_appended(self):

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
resizeMethod · 0.45

Tested by

no test coverage detected