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

Method test_char_dump

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

Source from the content-addressed store, hash-verified

98 assert_array_equal(idx, origidx)
99
100 def test_char_dump(self):
101 # Ticket #50
102 ca = np.char.array(np.arange(1000, 1010), itemsize=4)
103 for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):
104 with BytesIO() as f:
105 pickle.dump(ca, f, protocol=proto)
106 f.seek(0)
107 ca = np.load(f, allow_pickle=True)
108
109 def test_noncontiguous_fill(self):
110 # Ticket #58.

Callers

nothing calls this directly

Calls 1

seekMethod · 0.80

Tested by

no test coverage detected