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

Method test_int_shape

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

Source from the content-addressed store, hash-verified

5834
5835 @_no_tracing
5836 def test_int_shape(self):
5837 x = np.eye(3)
5838 if IS_PYPY:
5839 x.resize(3, refcheck=False)
5840 else:
5841 x.resize(3)
5842 assert_array_equal(x, np.eye(3)[0,:])
5843
5844 def test_none_shape(self):
5845 x = np.eye(3)

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
resizeMethod · 0.45

Tested by

no test coverage detected