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

Method test_subarray_int_shape

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

Source from the content-addressed store, hash-verified

4363 assert_equal(a, p)
4364
4365 def test_subarray_int_shape(self):
4366 s = b"cnumpy.core.multiarray\n_reconstruct\np0\n(cnumpy\nndarray\np1\n(I0\ntp2\nS'b'\np3\ntp4\nRp5\n(I1\n(I1\ntp6\ncnumpy\ndtype\np7\n(S'V6'\np8\nI0\nI1\ntp9\nRp10\n(I3\nS'|'\np11\nN(S'a'\np12\ng3\ntp13\n(dp14\ng12\n(g7\n(S'V4'\np15\nI0\nI1\ntp16\nRp17\n(I3\nS'|'\np18\n(g7\n(S'i1'\np19\nI0\nI1\ntp20\nRp21\n(I3\nS'|'\np22\nNNNI-1\nI-1\nI0\ntp23\nb(I2\nI2\ntp24\ntp25\nNNI4\nI1\nI0\ntp26\nbI0\ntp27\nsg3\n(g7\n(S'V2'\np28\nI0\nI1\ntp29\nRp30\n(I3\nS'|'\np31\n(g21\nI2\ntp32\nNNI2\nI1\nI0\ntp33\nbI4\ntp34\nsI6\nI1\nI0\ntp35\nbI00\nS'\\x01\\x01\\x01\\x01\\x01\\x02'\np36\ntp37\nb."
4367 a = np.array([(1, (1, 2))], dtype=[('a', 'i1', (2, 2)), ('b', 'i1', 2)])
4368 p = self._loads(s)
4369 assert_equal(a, p)
4370
4371 def test_datetime64_byteorder(self):
4372 original = np.array([['2015-02-24T00:00:00.000000000']], dtype='datetime64[ns]')

Callers

nothing calls this directly

Calls 2

_loadsMethod · 0.95
assert_equalFunction · 0.90

Tested by

no test coverage detected