MCPcopy
hub / github.com/numpy/numpy / test_cannot_seed

Method test_cannot_seed

numpy/random/tests/test_randomstate.py:114–117  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

112 [4, 5, 6]])
113
114 def test_cannot_seed(self):
115 rs = random.RandomState(PCG64(0))
116 with assert_raises(TypeError):
117 rs.seed(1234)
118
119 def test_invalid_initialization(self):
120 assert_raises(ValueError, random.RandomState, MT19937)

Callers

nothing calls this directly

Calls 1

assert_raisesFunction · 0.90

Tested by

no test coverage detected