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

Method test_none_shape

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

Source from the content-addressed store, hash-verified

5842 assert_array_equal(x, np.eye(3)[0,:])
5843
5844 def test_none_shape(self):
5845 x = np.eye(3)
5846 x.resize(None)
5847 assert_array_equal(x, np.eye(3))
5848 x.resize()
5849 assert_array_equal(x, np.eye(3))
5850
5851 def test_0d_shape(self):
5852 # to it multiple times to test it does not break alloc cache gh-9216

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
resizeMethod · 0.45

Tested by

no test coverage detected