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

Method test_pickle

numpy/random/tests/test_smoke.py:485–497  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

483 assert_(s.shape == (20, 3))
484
485 def test_pickle(self):
486 rg = self._create_rng().rg
487 pick = pickle.dumps(rg)
488 unpick = pickle.loads(pick)
489 assert_(type(rg) is type(unpick))
490 assert_(comp_state(rg.bit_generator.state,
491 unpick.bit_generator.state))
492
493 pick = pickle.dumps(rg)
494 unpick = pickle.loads(pick)
495 assert_(type(rg) is type(unpick))
496 assert_(comp_state(rg.bit_generator.state,
497 unpick.bit_generator.state))
498
499 def test_seed_array(self):
500 data = self._create_rng()

Callers

nothing calls this directly

Calls 3

_create_rngMethod · 0.95
assert_Function · 0.90
comp_stateFunction · 0.85

Tested by

no test coverage detected