MCPcopy Index your code
hub / github.com/numpy/numpy / test_pickle_transposed

Method test_pickle_transposed

numpy/_core/tests/test_regression.py:50–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48 np.empty((1,), dtype=[('x', np.int64)])
49
50 def test_pickle_transposed(self):
51 # Ticket #16
52 a = np.transpose(np.array([[2, 9], [7, 0], [3, 8]]))
53 for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):
54 with BytesIO() as f:
55 pickle.dump(a, f, protocol=proto)
56 f.seek(0)
57 b = pickle.load(f)
58 assert_array_equal(a, b)
59
60 def test_dtype_names(self):
61 # Ticket #35

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
seekMethod · 0.80

Tested by

no test coverage detected