MCPcopy Index your code
hub / github.com/pydata/xarray / test_pickle

Method test_pickle

xarray/tests/test_sparse.py:313–316  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

311 assert expected == repr(self.var)
312
313 def test_pickle(self):
314 v1 = self.var
315 v2 = pickle.loads(pickle.dumps(v1))
316 assert_sparse_equal(v1.data, v2.data)
317
318 def test_missing_values(self):
319 a = np.array([0, 1, np.nan, 3])

Callers

nothing calls this directly

Calls 1

assert_sparse_equalFunction · 0.85

Tested by

no test coverage detected