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

Method test_zeros_appended

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

Source from the content-addressed store, hash-verified

5877
5878 @_no_tracing
5879 def test_zeros_appended(self):
5880 x = np.eye(3)
5881 if IS_PYPY:
5882 x.resize(2, 3, 3, refcheck=False)
5883 else:
5884 x.resize(2, 3, 3)
5885 assert_array_equal(x[0], np.eye(3))
5886 assert_array_equal(x[1], np.zeros((3, 3)))
5887
5888 @_no_tracing
5889 def test_obj_obj(self):

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
resizeMethod · 0.45

Tested by

no test coverage detected