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

Method test_cannot_seed

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

assert_raisesFunction · 0.90

Tested by

no test coverage detected