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

Method test_char_dump

numpy/core/tests/test_regression.py:81–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

79 assert_array_equal(idx, origidx)
80
81 def test_char_dump(self):
82 # Ticket #50
83 ca = np.char.array(np.arange(1000, 1010), itemsize=4)
84 for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):
85 with BytesIO() as f:
86 pickle.dump(ca, f, protocol=proto)
87 f.seek(0)
88 ca = np.load(f, allow_pickle=True)
89
90 def test_noncontiguous_fill(self):
91 # Ticket #58.

Callers

nothing calls this directly

Calls 1

seekMethod · 0.80

Tested by

no test coverage detected